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

NOTE/TODO

Many of these solutions could do with improvements. TODO: Add script to auto generate UserScript files from the uBlock Origin scripts.

Description
No description provided
Readme 563 KiB
Languages
JavaScript 100%