Twitch - Mute and hide ads, while keeping the audio of the stream on

Automatically mutes and hides the Twitch player when an advertisement started and revert it back to normal once finished. The stream can still be heard during ads. You can also display ads via the "Ads Options" button.

< 腳本Twitch - Mute and hide ads, while keeping the audio of the stream on的回應

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

§
發表於:2025-08-13

sometimes just keep showing

Harest作者
§
發表於:2025-08-13
編輯:2025-08-13

That's an interesting behavior. So the small player top right doesn't close, and the stream continues to be displayed at both places? Or is it a still picture for the small one?

I never had this issue, so i might have a hard time to troubleshoot it. In the console, when this occurs, do you have this line?

"Stream top right hidden detected during the ad. Unhidden."

To open the console it's Ctrl + Shift + J or K depending on the browser.
If yes, as a temporary fix, you can comment the line 195, specifically:

playerHidden.classList.remove(currentSelector.playerHidingDuringAd);

You can do this by adding // in front of it. Maybe they're doing some A/B testing, and the behavior changed there in a way that it's now uneccessary (and counterproductive, cf. your case) to remove that class.

§
發表於:2025-08-14

the stream continues to be displayed at both places


i ii try next time

§
發表於:2025-08-14

something new
i try to use another twitch script
the right small place showing blank
so it might not ur script issue

Harest作者
§
發表於:2025-08-14
編輯:2025-08-14

For how long did you have this issue? Maybe try a Ctrl + F5 on a stream to clear the cache just in case. But indeed that's a weird behavior. And thanks for telling me the top right small slot for the stream during ads is visible without my script enabled.

Like i said, regarding my script, there's only the line 195 i mentioned above that could cause an eventual issue there, and only if Twitch changed something. In the current state of the site, i didn't have any case like that. Even in prerolls currently, they're showing it compared to before where they'd not. And it's always properly removed after an ad, by Twitch's code. In my experience at least. Few months back it could be buggy at times, but i didn't have any issue since.

發表回覆

登入以回覆