- Notifications
You must be signed in to change notification settings - Fork24
Block advertisements that are inserted in Twitch streams directly.
License
instance01/Twitch-HLS-AdBlock
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Twitch is playing a 15-30 second advertisement whenever one starts watching a new channel. For people who jump around a bit this is pretty annoying.
Twitch staff has been fairly quick to remove client side fixes that disable advertisements. Since they're able to inject advertisementst into the HLS stream directly (SSAI, Twitch'sSureStream if you want to research further), I believe such fixes will not always be available.
This extension monkey patches the web worker (among others) Twitch uses and edits the m3u8 playlist that gets requested every few seconds to simply remove segments that are marked as advertisments with SCTE-35 flags.
Right now Twitch also makes the actual stream available in those playlist files after a few seconds, which means that after just around 5 seconds the real stream begins, instead of 30 seconds of advertisements.
To install manually for Chrome:
- Checkreleases for the latest zip or download the source
- Unzip into a directory and keep the directory in mind
- Go to chrome://extensions/ and enable Developer Mode
- Click on 'Load unpacked' and go to the directory with the extension (see if manifest.json is in the directory)
To install manually for FireFox:
- Download the latest release (xpi file)
- Go to about:addons and load addon from file
Generally it seems to work fine. Whenever one loads up a new channel, if there's an advertisment injected by Twitch, after a few seconds of loading the real stream begins without any indication of an advertisment.
However I've seen rare instances where the stream breaks, which requires a browser reload. This happened once when the advertisment loaded 2-3 seconds after the stream has started normally.
Currently this is only tested on the latest stable chromium browser and latest Firefox stable.
I appreciate any contributions, be it pull requests or issues. Right now there's no tests however, so make sure to test extensively on Twitch before submitting a pull request.
About
Block advertisements that are inserted in Twitch streams directly.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.