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

댓글 남기기

댓글을 남기려면 로그인하세요.