feat: a minimal fix to try and close #17

This commit is contained in:
2026-03-29 15:28:10 -04:00
parent 14e37c62d5
commit 37d1831b8b
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1309,8 +1309,8 @@ function defineVideoController() {
);
this.visibilityResumeHandler = null;
}
// Clear the target speed when stopping
this.targetSpeed = null;
// Clear the animation state, but PRESERVE targetSpeed so getDesiredSpeed
// doesn't lose the user's intended speed if the site hijacks it.
};
tc.videoController.prototype.performImmediateNudge = function () {
@@ -2085,6 +2085,7 @@ function setSpeed(video, speed, isInitialCall = false, isUserKeyPress = false) {
if (isUserKeyPress && !isInitialCall && video.vsc && video.vsc.div) {
runAction("blink", 1000, null, video); // Pass video to blink
extendSpeedRestoreWindow(video); // Protect against immediate site-driven resets
}
// Try YouTube's native speed API first — keeps subtitles in sync without nudge
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "Speeder",
"short_name": "Speeder",
"version": "4.2.0",
"version": "4.3.1",
"manifest_version": 2,
"description": "Speed up, slow down, advance and rewind HTML5 audio/video with shortcuts (New and improved version of \"Video Speed Controller\")",
"homepage_url": "https://github.com/SoPat712/speeder",