mirror of
https://github.com/SoPat712/videospeed.git
synced 2026-04-21 04:42:35 -04:00
feat: a minimal fix to try and close #17
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user