Pause/Mute HTML5 Audio/Video On Leaving Tab

Pause or mute HTML5 audio/video on leaving a tab and restore them back on returning.

These are all versions of this script. Show only the versions where the code changed.

  • v1.0.5 2021-03-16

    Better media pausing method for sites which persistently try to play the paused media. e.g. vaughn.live

  • v1.0.4 2020-04-15 Fixed pausing/muting doesn't work on YouTube polymer
  • v1.0.3 2020-03-27 Fixed paused/muted videos may not be restored back when switching back to the page
  • v1.0.2 2018-03-01 Minor fix to suppress an error log (no functionality difference)
  • v1.0.1 2017-06-05