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