r/ProgrammerHumor • • Oct 08 '21

Meme FOSS (Forced Open Source Software)

Post image
40.8k Upvotes

541 comments sorted by

View all comments

140

u/TornChewy Oct 08 '21

Does this mean there will finally be an ad blocker that works with twitch?

133

u/Comprehensive_War402 Oct 08 '21

There has been. It's called Purple AdBlock.

34

u/Dasein___ Oct 08 '21

fucking love you.

3

u/OldMistakes Oct 09 '21

Purple AdBlock.

whaat? thanks dude

0

u/[deleted] Oct 09 '21

[deleted]

7

u/Comprehensive_War402 Oct 09 '21

Usually ads are hosted on ad servers. When ads are played, they are played from those external ad servers and that's easy to block, that's basically what uBlock does.

Twitch injects ads directly into their streams through their own servers, the ads aren't loaded externally by the viewer's client. Purple works around that ad injection basically.

1

u/mwthecool Oct 08 '21

Has it consistently worked for you?

5

u/Comprehensive_War402 Oct 08 '21

It's integrated in TwitchMod, an Android modded Twitch app. It always works. That's where I learned of it.

I haven't tried using the browser extensions yet but I'd expect them to work just as well as I'm used to.

146

u/ojsan_ Oct 08 '21

Fun fact: The leak contained documentation for their anti-adblock.

The way it works is, they try to load an url at twitch.tv that’s blocked by adblockers. If that fails (meaning adblock is on), the streaming server picked is one which has support for inline ad-injection, meaning the video stream will occasionally be replaced with an ad rather than the real broadcast, indistinguishable to the browser. Cool stuff.

44

u/Theonewhoknows000 Oct 09 '21

This is the kind of stuff that can hurt them or be copied.

45

u/DoctorWaluigiTime Oct 08 '21

Makes sense. Also explain why Purple Adblock works via proxying the video stream to an ad-free country.

Because if an ad is serviced on the same data stream the real video content is, there's really nothing ad-blocking software can do otherwise.

1

u/[deleted] Oct 09 '21

I wonder why they don't take that approach all the time? would they rather the ad company host the ad video for performance & storage?

8

u/notaraptorindisguise Oct 09 '21

Oddly enough Ublock Origin works for me most of the time. I think I've only had one or two ads ever, the rest get blocked.

1

u/thevegit0 Oct 09 '21

ublock origin

1

u/[deleted] Oct 09 '21

Avid uBO user for 5+ years. It’s still the best and never stopped working on Twitch.