r/learnprogramming • • Oct 13 '17

I created a chrome plugin that automatically mutes youtube commercials

This is a chrome plugin that automatically mutes youtube commercials. After the commercial finished, the volume goes back up.

Thanks to this, casters can still be reworded by youtube, but you don't have to listen to crappy commercials.

https://chrome.google.com/webstore/detail/youmuter/hbhjkldledabllijjmnmfhhiejephibe

and you can checkout the source code here:

https://github.com/adamgajzlerowicz/muter

3.0k Upvotes

228 comments sorted by

View all comments

27

u/Annndroid Oct 13 '17

Can you do this for Twitch? Would be appreciated

11

u/DigitSubversion Oct 13 '17

Yeah, would LOVE to have a Twitch version :D

3

u/Synaxxis Oct 13 '17

Twitch, Hulu, Fox, NBC, TNT, ABC, USA, and every other video type service that has ads.

5

u/MozzyZ Oct 13 '17

Seriously hate Twitch for making it impossible to mute ads manually anymore unless the stream is muted beforehands.

1

u/Theyreillusions Oct 14 '17

If that is the case, then this code would be a bit tougher to manipulate for that purpose.

At least with my limited understanding. This script is checking if there is an ad, then checking for a mute button.

If there isn't a mute button anymore, it can't do anything. Unless somehow you can get Java Script to mute your browser entirely, rather than the web player?

This would interfere with, say, streaming Pandora and twitch simultaneously. I know some viewers like to have music and their streamer on in the background while gaming or doing whatever.

1

u/dothefandango Oct 14 '17

I'm going to look into this -- Safari has tab by tab muting so there must be a way to do it.

1

u/100percent_right_now Oct 14 '17

Chrome and Edge also have this. You can right click any tab that's making noise and silence it.

1

u/MozzyZ Oct 14 '17

The mute button is still there visually but when you try to click on it, you click on the ad instead. It's like the ad is covering the mute button.

1

u/Theyreillusions Oct 14 '17

Doesnt the FCC have rules against this sort of thing? Or is that just on the television.

Imagine hitting mute on your tv remote and it wont work because a commercial is playing