Page 1 of 1

[Suggestion] Auto-Mute Supported Ads

Posted: Sat Jan 16, 2016 10:36 pm
by Warhaven
I'd like to continue my support for favorite twitch streamers by keeping the ads enabled, but listening to the same ad over and over and over and over gets on my nerves. Was wondering if it were at all possible to add an option to auto-mute ads as opposed to outright blocking them?

Re: [Suggestion] Auto-Mute Supported Ads

Posted: Tue Feb 09, 2016 8:19 pm
by lewisje
For HTML5 ads, set the "muted" attribute of the audio or video element to true: https://www.w3.org/TR/html5/embedded-co ... edia-muted

For Flash ads, you'll need to figure out whether they can be muted via any sort of JS API.

In either case, it's beyond the scope of ABP and would be better implemented as a UserScript.

Re: [Suggestion] Auto-Mute Supported Ads

Posted: Fri Jul 29, 2016 7:12 pm
by KernelDeimos
How is this beyond the scope of ABP? It would only require modifying elements on the page. I assume ABP already parses HTML to determine which elements are ads.

For flash ads, adding the attribute volume="0" should mute them.

Re: [Suggestion] Auto-Mute Supported Ads

Posted: Fri Jul 29, 2016 7:19 pm
by greiner
KernelDeimos wrote: I assume ABP already parses HTML to determine which elements are ads.
No, we don't touch the HTML. Adblock Plus blocks requests by interacting with the browser directly and it hides elements by applying CSS styles to the page.

Re: [Suggestion] Auto-Mute Supported Ads

Posted: Fri Jul 29, 2016 7:26 pm
by KernelDeimos
Oh, neat! I guess checking every HTML element would be way too slow in retrospect.

Re: [Suggestion] Auto-Mute Supported Ads

Posted: Fri Jul 29, 2016 7:28 pm
by lewisje
KernelDeimos wrote:Oh, neat! I guess checking every HTML element would be way too slow in retrospect.
Exactly: forum/viewtopic.php?t=5977

Re: [Suggestion] Auto-Mute Supported Ads

Posted: Fri Oct 27, 2017 7:18 pm
by aFreakOfNature
What about just muting the computer (like at the operating system level or whatever)?

Like, can ABP press my mute button on my keyboard for me and unmute when ad is over?

I'd really love this!

Re: [Suggestion] Auto-Mute Supported Ads

Posted: Fri Oct 27, 2017 8:47 pm
by mapx
No, an extension cannot do what you want. Wait for the chrome implementation.