Files
TwitchAdSolutions/README.md
pixeltris 598cfb209c vaft/video-swap-new improvements
- vaft fixed 2k/4k stream error 4000/3000 #451
- vaft added integrated buffering fix using pause/play during ads #404 #164
- video-swap-new fixed 160p being used as low res instead of 360p
- vaft/video-swap-new removed unneeded GM.xmlHttpRequest #399
- vaft/video-swap-new improved check for unpausing muted stream when switching  tab #442
- vaft/video-swap-new some adjustments to saving player state under chrome based browsers #329
- vaft reduce number of ads when the player is embeded

Brave needs to be on 1.81.131 (released Aug 6 2025) or later otherwise ad blocking will fail https://community.brave.app/t/release-channel-1-81-131/637972
2025-11-01 17:01:06 +00:00

4.0 KiB

TwitchAdSolutions

This repo aims to provide multiple solutions for blocking Twitch ads.

Don't combine Twitch specific ad blockers.

Recommendations

Proxies are the most reliable way of avoiding ads (buffering / downtime info).

Alternatively:

Read this for a full list and descriptions.

Also see this list maintained by @zGato.

Scripts

There are better / easier to use methods in the above recommendations.

Applying a script (uBlock Origin)

  • Navigate to the uBlock Origin Dashboard (the extension options)
  • Under the My filters tab add twitch.tv##+js(twitch-videoad).
  • Under the Settings tab, enable I am an advanced user, then click the cog that appears. Modify the value of userResourcesLocation from unset to the full url of the solution you wish to use (if a url is already in use, add a space after the existing url). e.g. userResourcesLocation https://raw.githubusercontent.com/pixeltris/TwitchAdSolutions/master/video-swap-new/video-swap-new-ublock-origin.js
  • To ensure uBlock Origin loads the script I recommend that you disable/enable the uBlock Origin extension (or restart your browser).

To stop using a script remove the filter and make the url unset.

For the sake of security it's recommended to use a permalink when using uBlock Origin (permalinks do not auto update).

The scripts may randomly stop being applied by uBlock Origin for unknown reasons (#200). It's recommended to use the userscript versions instead.

Applying a script (userscript)

Viewing one of the userscript files should prompt the given script to be added when you have a userscript manager installed.

Userscript managers:

Issues with the scripts

If the script doesn't work or you're experiencing freezing / buffering issues see issues.md