Pause/Mute HTML5 Audio/Video On Leaving Tab

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

< Σχολιασμός για τον κώδικα Pause/Mute HTML5 Audio/Video On Leaving Tab

Αναφορά: Καλός - ο κώδικας λειτουργεί

§
Δημοσιεύτηκε: 09/01/2018

Pause/Mute HTML5 Audio/Video On Leaving Tab : Work perfectly !

Thanks :
It does that it said without problem :-)

§
Δημοσιεύτηκε: 16/01/2024

Seems stopping to work ?
Test on Firefox Quantum

jcunewsΔημιουργός
§
Δημοσιεύτηκε: 17/01/2024

Still works when tested in YouTube with Firefox and Chromium.

Did you install a browser extension and/or other UserScript recently?

§
Δημοσιεύτηκε: 17/01/2024

Sorry...
Now it work perfectly!
I don't know what was the problem before....
But maybe a mistake from me:
I test a migration from Waterfox Classic to Quantum and install many of mine favorits userscripts (your work in many place!).

Anyway thanks for your work :-)

Another Question:
It's possible with an userscript to have a button, in the browser taskbar, to toggle its action ?
Like certain addon have...
Should be useful for your script in think.

jcunewsΔημιουργός
§
Δημοσιεύτηκε: 17/01/2024

Unfortunately, it's not possible. Adding toolbar button require browser extension API which UserScripts don't have any access to.

By far, UserScripts can add menu items into Violent/Tampermonkey popup menu like shown in below screenshot.

Tampermonkey: the "Setting / ..." menu item of the "Popup Search" UserScript menu item.

https://user-images.githubusercontent.com/34861918/70062773-a1a68c80-1621-11ea-88d4-cb04191b5e4c.png

Violentmonkey: the menu items which have curly icon such as on "Change volume...", "Clear Spellcheck...", etc. menu items.

https://greasyfork.s3.us-east-2.amazonaws.com/zwcb000vw1vxs15ugs5yvzustcvc

§
Δημοσιεύτηκε: 17/01/2024

Thanks for the clarification :-)

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.