Automatically mutes the Twitch player when an advertisement started and unmute it once finished. You can also hide ads by setting disableDisplay to true.
当前为 
Automatically mutes the Twitch player when an advertisement started and unmute it once finished. You can also hide ads by setting the property disableDisplay to true. There's several variables you can edit as you want.  
2023-12-17 Notice: Currently testing pre-roll ad anticipation, it'll be off by default. I'll remove squad stream stuff in a near future as it's going away. Waiting Firefox v121 (in 2 days normally) to add Picture in Picture support so it's also hidden during an ad if you set disableDisplay to true.  
2020-11-01 Notice: uBlock Origin once in a while doesn't work properly to block the ads. Temporary fix likes this one makes things worse. I decided to quickly update my script and use it again in the meantime. Previously noted problem below doesn't seem to be existing anymore.
2019-11-24 Notice: Use uBlock Origin. Twitch wants you to see their ads too much. They hindered this script again by delaying the display of the ad notice (used to know if an ad is in progress), and by pausing the ad despite the player is in a playing state.