1
0
mirror of https://github.com/pixeltris/TwitchAdSolutions.git synced 2024-11-22 10:22:51 +01:00
TwitchAdSolutions/README.md
2020-12-26 12:08:27 +00:00

2.9 KiB

TwitchAdSolutions

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

Current solutions

  • dyn-skip
    • Notifies Twitch that ads were watched before requesting the main live stream.
    • May slightly slow down loading of streams.
    • Falls back to mute-black if this fails (use an alternative solution if it always fails for you, as it adds additional load).
  • 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.
  • 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).
  • 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 user.js e.g. low-res.user.js

Other solutions / projects

NOTE/TODO

NOTE: Many of these solutions could do with improvements. TODO: Add script to auto generate UserScript files from the uBlock Origin scripts. TODO: Test midroll ads. TODO: More testing in general.