AutoPlay Disabled for HTML5 Videos + Pause on Switch Tab

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™ (

These are versions of this script where the code was updated. Show all versions.

  • v1.83 2017-06-28
  • v1.82 2017-06-28
  • v1.81 2017-06-28
  • v1.8 2017-06-28 More site-specific fixes
  • v1.6 2017-06-28 Should work on all websites now - fixed after testing with many different ones. Added whitelist settings for websites (as well as hosting sources). Refactored. More settings.
  • v1.5 2017-06-28 Updated description with note on usage with YouTube: On YouTube, click the main video area to play the video so don't have to click the Pause/Play button twice for the first time.
  • v1.4 2017-06-28