Anti-Autoplay on Twitch

Disable Autoplay on Twitch's Homepage

< Feedback on Anti-Autoplay on Twitch

Review: OK - script works, but has bugs

§
Posted: 02-03-2022

This script is almost working for me but the video was pausing only about half of the times. I looked a bit at the code and did some debugging...
It seemed like sometimes the script tries to pause the video before it "officially" starts playing so I added a small delay for the .pause method:

At line 48, I replaced "video.pause();" with "Delayed_Pause = setTimeout(function() {video.pause()}, 100);"

I only tested this for a dozen of page reloads and it seams to work a lot better with this but it still skip pausing for about 10% of the time, which I don't really know what is causing this...

Using Chrome v98.0

Post reply

Sign in to post a reply.