Pause/Mute HTML5 Audio/Video On Leaving Tab

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

作者
jcunews
今日安裝
0
安裝總數
234
評價
8 0 0
版本
1.0.5
建立日期
2017-06-05
更新日期
2021-03-16
授權條款
AGPL v3
腳本執行於
所有網站

By default, this script will pause instead of mute. To make it to mute instead of pause, change the muteInsteadOfPause variable in the script from false to true.

This script will only pause/mute if the current tab has been fully loaded before switching to other tab. IOTW, it won't pause/mute if the current tab is still loading when switching to other tab.