Is there an extension or userscript for
twitch.tv that can look for the "advertisement" or "this ad supports XXX" in the top left corner and automatically mute the sound (and maybe hide the video too) while it's present?
The text is a separate html element and not just a part of the video stream, so it should be possible to do.