Anti-Autoplay on Twitch

Disable Autoplay on Twitch's Homepage

< 脚本Anti-Autoplay on Twitch的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发表于:2022-03-02

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

发表回复

登录以发表回复。