Skip to content

Commit 9a823ed

Browse files
committed
Add README.md and LICENSE
1 parent fbef96c commit 9a823ed

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 InstanceLabs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Motivation
2+
3+
Twitch is playing a 15-30 second advertisement when one starts to watch a new channel. For people who jump around a bit this is pretty annoying.
4+
5+
Twitch staff has been fairly quick to fix low hanging fruits that disable advertisements from the client side. Since they're able to inject advertisementst into the HLS stream directly, I believe such fixes will not always be available.
6+
7+
This chromium 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 (using SCTE-35 flags).
8+
9+
Right now Twitch also makes the actual stream available in those playlist files after a few seconds, which means that just after around 5 seconds the real stream begins, instead of 30 seconds of advertisements.
10+
11+
# Installation
12+
13+
Currently this extension is not on the chrome webstore, but I might upload it eventually.
14+
15+
To install manually:
16+
17+
1. Check [releases](https://github.com/instance01/Twitch-HLS-AdBlock/releases) for the latest zip or download the source
18+
2. Unzip into a directory and keep the directory in mind
19+
3. Go to chrome://extensions/ and enable Developer Mode
20+
4. Click on 'Load unpacked' and go to the directory with the extension (see if manifest.json is in the directory)
21+
22+
23+
# Limitations
24+
25+
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. Additionally there is a few seconds of buffering after 30 seconds (or maybe that's my shitty connection).
26+
27+
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.
28+
29+
Currently this is only tested on the latest stable chromium browser, but Firefox support (if not already working) will definitely follow shortly.
30+
31+
# Contributing
32+
33+
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.
34+

0 commit comments

Comments
 (0)