2020-12-22 19:43:13 +01:00
# TwitchAdSolutions
This repo aims to provide multiple solutions for blocking Twitch ads.
2020-12-29 15:17:38 +01:00
## Recommendations
M3U8 proxies (or full proxies) are currently the most reliable way of avoiding ads (assuming you trust the third party). More proxy hosts would be ideal (see [#8 ](https://github.com/pixeltris/TwitchAdSolutions/issues/8 )).
2020-12-31 19:15:07 +01:00
- `Twitch Video Ad Blocker` - [chrome ](https://chrome.google.com/webstore/detail/ttv-intrusive-ad-blocker/gggloiaahekkkndacnpecpgafnehmlja ) / [firefox ](https://addons.mozilla.org/en-GB/firefox/addon/twitch-video-ad-blocker/ )
2020-12-29 15:17:38 +01:00
2020-12-31 04:27:21 +01:00
If you don't trust third parties then:
- `dyn-skip` / `dyn-skip-midroll-alt` are decent.
- `Alternate Player for Twitch.tv` consistently updates with new ad-blocking methods.
2021-01-01 02:02:36 +01:00
- `ttv_adEraser` somewhat fixes the purple screen issue of `ttv-ublock` .
- `ttv-tools` (firefox) has nice features.
2020-12-29 15:17:38 +01:00
2020-12-22 19:43:13 +01:00
## Current solutions
2020-12-29 15:17:38 +01:00
*These solutions generally aren't compatible with other Twitch ad blockers. e.g. `ttv-ublock` will break `dyn-skip` (and others).*
2020-12-26 13:37:30 +01:00
- dyn-skip ([ublock](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn-skip/dyn-skip-ublock-origin.js) / [userscript ](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn-skip/dyn-skip.user.js ))
2020-12-26 07:15:48 +01:00
- Notifies Twitch that ads were watched before requesting the main live stream.
- Falls back to mute-black if this fails (use an alternative solution if it always fails for you, as it adds additional load).
2020-12-31 04:27:21 +01:00
- *Midroll ads are muted/blacked out. See `dyn-skip-midroll-alt` for an alternative solution.*
2020-12-29 17:37:15 +01:00
- dyn-skip-midroll-alt ([ublock](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn-skip-midroll-alt/dyn-skip-midroll-alt-ublock-origin.js) / [userscript ](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn-skip-midroll-alt/dyn-skip-midroll-alt.user.js ))
2020-12-30 02:11:34 +01:00
- A mix of `dyn-skip` / `dyn` . During midrolls this plays a low resolution stream instead of nothing - might be a little glitchy but should always play *something* .
- *If you see a `Waiting for ads to finish` banner without `midroll` in the banner text, you should be able to just refresh the page to get a regular stream.*
2020-12-31 04:52:33 +01:00
- dyn-skip-midroll ([ublock](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn-skip-midroll/dyn-skip-midroll-ublock-origin.js) / [userscript ](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn-skip-midroll/dyn-skip-midroll.user.js )) ** (not recommended)**
2020-12-31 04:27:21 +01:00
- The same as `dyn-skip` , but *attempts* to fully skip midroll ads *(I'm not sure if this has ever actually worked - infinite reload)* .
2020-12-30 03:18:12 +01:00
- **This requires the script to work perfectly, otherwise the player will hit a reload loop.**
2020-12-26 13:37:30 +01:00
- dyn-video-swap ([ublock](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn-video-swap/dyn-video-swap-ublock-origin.js) / [userscript ](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn-video-swap/dyn-video-swap.user.js ))
2020-12-22 20:07:03 +01:00
- Ads are replaced by a low resolution stream for the duration of the ad.
2020-12-22 22:48:00 +01:00
- Similar to `dyn` , but skips closer to 20 seconds when switching to the live stream.
2020-12-22 19:58:05 +01:00
- You might see tiny bits of the ad.
- Audio controls wont work whilst the ad is playing.
2020-12-26 13:37:30 +01:00
- dyn ([ublock](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn/dyn-ublock-origin.js) / [userscript ](https://github.com/pixeltris/TwitchAdSolutions/raw/master/dyn/dyn.user.js ))
2020-12-26 23:29:35 +01:00
- Ad segments are replaced by low resolution stream segments (on a m3u8 level).
2020-12-26 07:15:48 +01:00
- Skips 2-3 seconds when switching to the live stream.
- Stuttering and looping of segments often occur (during the ad segments).
- **NOTE: Removing segments doesn't notify Twitch that ads were watched (aka more served ads).**
2020-12-26 13:37:30 +01:00
- low-res ([ublock](https://github.com/pixeltris/TwitchAdSolutions/raw/master/low-res/low-res-ublock-origin.js) / [userscript ](https://github.com/pixeltris/TwitchAdSolutions/raw/master/low-res/low-res.user.js ))
2020-12-22 19:45:20 +01:00
- No ads.
- The stream is 480p for the duration of the stream.
2020-12-26 13:37:30 +01:00
- mute-black ([ublock](https://github.com/pixeltris/TwitchAdSolutions/raw/master/mute-black/mute-black-ublock-origin.js) / [userscript ](https://github.com/pixeltris/TwitchAdSolutions/raw/master/mute-black/mute-black.user.js ))
2020-12-22 19:58:05 +01:00
- Ads are muted / blacked out for the duration of the ad.
- You might see tiny bits of the ad.
2020-12-27 18:28:42 +01:00
- proxy-m3u8 ([ublock](https://github.com/pixeltris/TwitchAdSolutions/raw/master/proxy-m3u8/proxy-m3u8-ublock-origin.js) / [userscript ](https://github.com/pixeltris/TwitchAdSolutions/raw/master/proxy-m3u8/proxy-m3u8.user.js ))
2020-12-30 02:32:25 +01:00
- Uses a proxy server to fetch an ad-free stream.
2020-12-27 18:28:42 +01:00
- Currently only the initial m3u8 is proxied, so there shouldn't be any additional latency.
2020-12-31 19:15:07 +01:00
- Uses proxy from `Twitch Video Ad Blocker` - host asks for donations to cover costs.
2020-12-27 18:28:42 +01:00
- **Assumes the proxy server acts in good faith and maintains a good uptime.**
2020-12-22 19:43:13 +01:00
## Applying a solution (uBlock Origin)
- Navigate to the uBlock Origin Dashboard (the extension options)
- Under the `My filters` tab add `twitch.tv##+js(twitch-videoad)` .
2020-12-22 20:11:24 +01:00
- 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/dyn/dyn-ublock-origin.js`
2021-01-01 02:02:36 +01:00
- To ensure uBlock Origin loads the script I recommend that you disable/enable the uBlock Origin extension (or restart your browser).
2020-12-22 19:43:13 +01:00
2020-12-25 21:19:35 +01:00
## Applying a solution (userscript)
2021-01-01 02:02:36 +01:00
- Viewing one of the userscript files should prompt the given script to be added.
2020-12-25 21:19:35 +01:00
2020-12-22 19:46:00 +01:00
## Other solutions / projects
2021-01-01 02:05:04 +01:00
For a more detailed description of the following please refer to [this ](other-solutions.md ).
2020-12-31 19:15:07 +01:00
- https://github.com/ttvintrusiveadblocker/ttv-intrusive-blocker (extension)
2020-12-27 18:28:42 +01:00
- https://github.com/odensc/ttv-ublock (extension - purple screen may display every 10-15 mins)
2020-12-25 21:11:28 +01:00
- https://github.com/Nerixyz/ttv-tools (Firefox extension)
- https://github.com/LeonHeidelbach/ttv_adEraser (extension)
2020-12-27 18:28:42 +01:00
- https://github.com/instance01/Twitch-HLS-AdBlock (extension)
2020-12-25 21:11:28 +01:00
- https://github.com/Wilkolicious/twitchAdSkip (UserScript + FrankerFaceZ)
- https://gist.github.com/simple-hacker/ddd81964b3e8bca47e0aead5ad19a707 (UserScript + FrankerFaceZ(optional))
- https://greasyfork.org/en/scripts/415412-twitch-refresh-on-advert/code (UserScript + FrankerFaceZ(optional))
2020-12-27 18:28:42 +01:00
- [Alternate Player for Twitch.tv ](https://chrome.google.com/webstore/detail/bhplkbgoehhhddaoolmakpocnenplmhf ) - [code ](https://robwu.nl/crxviewer/?crx=bhplkbgoehhhddaoolmakpocnenplmhf&qf=player.js ) (extension)
---
2020-12-27 18:32:14 +01:00
- https://github.com/streamlink/streamlink (desktop application)
- https://github.com/nopbreak/TwitchMod (android app)
- https://twitchls.com/ (external site - purple screen may display every 10-15 mins)
2020-12-28 05:14:21 +01:00
- [Use a VPN targeting a region without ads ](https://reddit.com/r/Twitch/comments/kisdsy/i_did_a_little_test_regarding_ads_on_twitch_and/ )
2020-12-22 19:46:00 +01:00
2020-12-22 19:43:13 +01:00
## NOTE/TODO
2020-12-26 13:37:30 +01:00
NOTE: Many of these solutions could do with improvements.
TODO: Test midroll ads.
TODO: More testing in general.