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-10-19

I'm wondering if its possible to automatically popout player whenever ads run and then close player when ads are done? would be a cool addition

Harest作者
§
發表於:2025-10-20

A popout would probably be part of the actions we can't do automatically, similarly to all the Picture in Picture actions, but i was wondering at one point if i could maybe duplicate the top right player somehow and put it in place of the main player. I'm not sure how it'd look like though as the video quality is quite bad. Maybe i'll dig the subject at some point, but i can't assure it to you. The thing is there's already better solutions than mine, like TTV LOL Pro by using proxies. I made this because i didn't really want to use proxies, and thought i'd do something simple by myself. I shared it because i thought it might interest a few persons, and that's it.
Currently i think there's like at least 3 things that could be done:

  • Rework the script entirely to switch from pooling to MutationObserver to detect ads
  • Make a menu for the editable settings and load/save them from script manager storage
  • What we talked about here

But again, no ETA on any of these, or if they'll ever come to life. I'll already try to assure the script keeps working for its main purpose. And like i mentioned in another thread someone opened, the script is under MIT license, so anyone can contribute to improve it if wanted.

發表回覆

登入以回覆