继续操作前请注册或者登录。

你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/406877-anti-autoplay-on-twitch/discussions/120646,源站連結 點此以跳轉

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

发布留言

登录以发布留言。