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

Show parent comments

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/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