Twitch - Mute ads and optionally hide them

Automatically mutes the Twitch player when an advertisement started and unmute it once finished. You can also hide ads by setting disableDisplay to true.

< 腳本Twitch - Mute ads and optionally hide them的回應

評論:正評 - 腳本一切正常

§
發表於:2025-04-05

Works great, but only complaint is if you're not in the tab as the ad starts, the video in the top right doesn't fully load for some reason. Just spins with the buffering symbol until the ad ends. If I'm in the tab when the ads start, it's fine. Could be a Twitch or browser issue, I have no idea

Harest作者
§
發表於:2025-04-06

Only recently did i have a loading issue once with the small player top right during an ad. Else it generally always works. There's just the volume issue sometimes that occurs, and i never was able to understand really why since i'm getting the current volume before and setting it accordingly. But despite doing this, often the small player will have the volume at 100%. Firefox Picture in Picture is a custom implementation too and the volume of it isn't transmitted to the volume slider of the original Twitch player.

I know however when content is loaded in a non-focused tab, Twitch players are not loading so it might be related to the issue you encountered. I don't know if it's browser related with html5 video tag, or if it's Twitch. I often encounter this when i open clips in new tabs without switching on them instantly (which is nice in that case as the clip will start only when you switch on it). Or just by opening a stream in a new tab and switching 2-3s after on it. As i've the pre-roll ad anticipation enabled (set at 3000ms), in the log i can see it ends too soon but i can't do much about it.

發表回覆

登入以回復