Prevents auto-play HTML5 videos in new tabs on any page (not just YouTube) and pauses videos when leave/switch/change the current tab, to prevent any video playing in the background. This auto play blocker is an alternative to Click-to-Play / click to play. On some times like YouTube, click twice to begin first playback — From Dan Moorehead (xeonx1), developer of PowerAccess™ (http://PowerAccessDB.com)
< Відгуки до AutoPlay Disabled for HTML5 Videos + Pause on Switch Tab
Can confirm that adding any sites to the that variable breaks the script (I've only tested using the 'autoPlaysitesWhitelist'). Would love an update as otherwise it's an excellent userscript.
Bug Report - Any Exemption seems to Kill the Script !
Making an exception does not seem to work.
Anything on the whitelist kills the script !
Example:
var autoPlaySitesWhitelist = ["mamahd.tv", "live.livewidget.net"];
adds only 2 sites to the whitelist,
but even adding only one site to the whitelist
exempts ALL websites from this script = meaning, the script does not work at all (if all websites are exempt from the script, then the script is not working).
Or do I need to write my exemptions differently ?
I tried
var autoPlaySitesWhitelist = ["mamahd.tv*", "live.livewidget.net*"];
and that made no difference.
The problem exists on both Chrome and FireFox, used with TamperMonkey.
Please consider clarifying this, since this is the best stop-autoplay solution in the world; I tried all the scripts and browser extensions, nothing beats Your script - if it was not for this flaw with exemptions !