Wilkolicious / twitchAdSkip

141 stars 11 forks source link

twitchAdSkip

Based upon refreshTwitchAd.js (see credits)

Purpose

This is a script injectable by TamperMonkey (or similar) that attempts to bypass/skip Twitch's obnoxious mid-roll ad process when used in conjunction with effective adblocking filters/rules. This script itself won't block ads - it will skip the placeholder presented by Twitch (see purple image below under Why) when ads are effectively blocked.

Requirements

Why

Twitch has very recently & noticeably ramped up its anti-adblock efforts in an effort to increase ad viewership across its platform, presumably to increase profits. There is currently a non-official workaround for blocking pre-roll (before stream starts) ads, but mid-roll ads are half blocked. Currently, mid-roll ads are blocked, but a pattern is emerging that Twitch is interrupting stream viewing with a notice regarding "third party tool[s]", specifically for those with ad-blockers in an effort to dissuade their use.

image (Screenshot showing Twitch notice when an adblocker is used. Because not loading ads is "impacting site performance", and watching ads results in "the best Twitch experience" /s. Blatantly lying to the consumer.)

Installation (TamperMonkey, but adaptable to other UserScript managers)

  1. Ensure that your browser meets the requirements above
  2. Copy the script to your clipboard
  3. Open your TamperMonkey dashboard
  4. Find and press the new script button. In TamperMonkey, this can be found as a tab in the dashboard with a plus-in-a-box icon image
  5. Paste the code in the edit text area
  6. Save (Ctrl-s works, as if saving a Spreadsheet or Document)
  7. Ensure that the script is enabled, e.g. green: image
  8. Reload any twitch streams
  9. To update, repeat steps 2-8 (except edit the saved script instead of adding a new one)

Limitations

Privacy

The update URLs set in the UserScript are only for ease of use but will mean that updates are sourced directly from the latest commit in this repo. If you do not trust the code here or want automatic updates, then disable script updates in your UserScript manager and/or remove the following lines from the script in your UserScript manager:

// @updateURL     https://raw.githubusercontent.com/Wilkolicious/twitchAdSkip/main/twitchAdSkip.js
// @downloadURL   https://raw.githubusercontent.com/Wilkolicious/twitchAdSkip/main/twitchAdSkip.js

Credits

License

MIT