You need to sign in or sign up before continuing.

Sky News AutoPlay Disabler

This script prevents the Sky News website from auto-playing (often unrelated) videos after the current one has ended. BBC News provide a toggle, but Sky News doesn't. Until they introduce one, this workaround is for my own sanity.

Author
Gideon Pyzer
Daily installs
0
Total installs
21
Ratings
1 0 0
Version
0.1
Created
2018-01-28
Updated
2018-01-28
Size
1.86 KB
License
N/A
Applies to

This is a complete hack that will likely break as the website changes or if React changes. It works by listening for DOM changes, and if the playing screen gets added (as a result of hitting play), the `preventShowNext` handler will get the internal React component and update it's state to prevent the next video from playing. MutationObserver is slow, and will probably degrade the website's performance, but it's not a SPA so might be Ok.

长期地址
遇到问题?请前往 GitHub 提 Issues。