diff --git a/inject.js b/inject.js index 473816b..f66a880 100644 --- a/inject.js +++ b/inject.js @@ -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 diff --git a/manifest.json b/manifest.json index e41d069..ce97daf 100644 --- a/manifest.json +++ b/manifest.json @@ -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",