fix: prevent native Shorts auto-advance when auto-scroll is disabled
Closes #3901
Root cause
shortsAutoScroll() only removed its own interval when the setting was turned OFF, but never blocked YouTube's native auto-advance. For logged-in users, ytd-reel-video-renderer auto-advances to the next Short when the video's ended event fires - completely independently of the extension. This is why the bug is login-specific.
Fix
Added a shortsPreventScrollInterval in the disabled branch. It polls for the active Short's video element and attaches a timeupdate listener that pauses playback at duration - 0.1s - before the ended event fires -blocking the native advance. The listener self-removes when the setting is re-enabled, and the interval is cleaned up when switching back to ON.
hi and thank you so much @Sajith15 @LanceLake
Our toggle only allows to enable a feature. - When not enabled nothing can be done.
Since youtube change you can add another toggle to disable the the behavior youtube gives some people now.
Finally: Only one of the two toggles needs to be visible at a time - when neither is activated. To do this we need to check which of Youtube's experiement flags does this ( yt.config_.EXPERIMENT_FLAGS )
thank you