Greasy Fork is available in English.

Pause/Mute HTML5 Audio/Video On Leaving Tab

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

Auteur
jcunews
Nombre d'installations quotidiennes
0
Nombre d'installations
242
Évaluations
8 0 0
Version
1.0.5
Créer
2017-06-05
Mis à jour
2021-03-16
Size
2,1 ko
Licence
AGPL v3
S'applique à
Tous les sites

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.