TwitchAdSolutions/README.md
2020-12-25 21:55:30 +00:00

54 lines
2.8 KiB
Markdown

# TwitchAdSolutions
This repo aims to provide multiple solutions for blocking Twitch ads.
## Current solutions
- dyn-skip
- When ads play this instantly notifies Twitch that ads were watched. It then refreshes the stream (either full reload, or using FZZ extension).
- May potentially result in multiple refreshes if ads are being served aggressively.
- dyn-skip-min
- dyn-skip variant which doesn't require a reload (WIP/experimental)
- dyn
- Ad segments are replaced by a low resolution stream segments (on a m3u8 level).
- 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).**
- dyn-video-swap
- Ads are replaced by a low resolution stream for the duration of the ad.
- Similar to `dyn`, but skips closer to 20 seconds when switching to the live stream.
- You might see tiny bits of the ad.
- Audio controls wont work whilst the ad is playing.
- low-res
- No ads.
- The stream is 480p for the duration of the stream.
- mute-black
- Ads are muted / blacked out for the duration of the ad.
- You might see tiny bits of the ad.
## Applying a solution (uBlock Origin)
uBlock Origin solutions are single files, suffixed by `ublock-origin.js` e.g. `low-res-ublock-origin.js`.
- 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/dyn/dyn-ublock-origin.js`
## Applying a solution (userscript)
Tampermonkey / Greasemonkey can be used on the files suffixed by `userscript.js` e.g. `low-res-userscript.js`
## Other solutions / projects
- https://github.com/odensc/ttv-ublock (extension, purple screen may display every 10-15 mins)
- https://github.com/Nerixyz/ttv-tools (Firefox extension)
- https://github.com/LeonHeidelbach/ttv_adEraser (extension)
- 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))
- Alternate Player for Twitch.tv - [code](https://robwu.nl/crxviewer/?crx=bhplkbgoehhhddaoolmakpocnenplmhf&qf=player.js)
## NOTE/TODO
Many of these solutions could do with improvements. TODO: Add script to auto generate UserScript files from the uBlock Origin scripts.