Show HN: YouTube banned adblockers so I built an extension to skip their ads
713 points| rKarpinski | 2 years ago
Since Youtube no longer allows AdBlockers, I built my own extension to get around their video ads. If there is an ad it temporarily manipulates the video; Mutes the volume, sets speed to 10x, and skips it if there is a button.
Chrome Webstore link: https://chromewebstore.google.com/detail/ad-accelerator/gpbo...
[+] [-] extheat|2 years ago|reply
[+] [-] zamadatix|2 years ago|reply
I mean the client can then undo this, as it can any JS the page offers, but there's nothing harder about detecting playbackRate changes vs something which causes a DOM update.
[+] [-] rjh29|2 years ago|reply
[+] [-] zeven7|2 years ago|reply
[+] [-] _dark_matter_|2 years ago|reply
[+] [-] matricaria|2 years ago|reply
[+] [-] kkarpkkarp|2 years ago|reply
https://github.com/TheRealJoelmatic/RemoveAdblockThing
[+] [-] rKarpinski|2 years ago|reply
[+] [-] kspacewalk2|2 years ago|reply
[+] [-] timenova|2 years ago|reply
But that being said, recently even Vinegar is struggling a lot when I open a YouTube video (although the developer is promptly fixing issues). The video starts playing in the background, but I can't see it, then it pauses for a few seconds and restarts.
It's crazy how terrible YouTube is making the experience on their site!
[0] https://apps.apple.com/in/app/vinegar-tube-cleaner/id1591303...
[+] [-] j45|2 years ago|reply
As a surprised customer of YouTube premium having all ads gone across videos and music across all devices really might not be a bad deal for anyone on the fence for a family plan and all your devices.
In terms of working around ads.. There are some neat solutions that seem to work ok for YouTube on tv.. but so far the family plan seems ok.
Was anyone able tog eat off the premium plan and have no ads on their phones, computers, tvs and smart speakers?
[+] [-] TriNetra|2 years ago|reply
- alt+2 to click on Skip Ads button
- ctrl + shift + end to set video's 'seek position' at 100% (useful to skip ads when 'Skip Ads' button isn't available. This makes Youtube believe that the ad is finished playing)
0: https://github.com/varunkho/ramaplayer
[+] [-] snow_mac|2 years ago|reply
[+] [-] Zak|2 years ago|reply
[+] [-] ajsnigrutin|2 years ago|reply
...but it seems to work ok in incognito tabs, so youtube gets even less data on me now.
[+] [-] unknown|2 years ago|reply
[deleted]
[+] [-] Joel_Mckay|2 years ago|reply
It is going to be an interesting waste of resources. =)
[+] [-] Obscurity4340|2 years ago|reply
[+] [-] indianmouse|2 years ago|reply
Try moving through a video when this extension is active and you can see that the advertisement is getting active for almost every possible forward / reverse time selection on the video timeline.
It is just too many blank screens and though it saves a couple of seconds in the actual advertisement watching space, it does provide an unpleasant experience of watching the black screen for a few seconds.
I can live with that (and most should be!), but wanted to record this observation so that it get's to the developer's attention for improvements (if possible!)
Hope it helps.
[+] [-] rKarpinski|2 years ago|reply
For longer videos Youtube will insert multiple ads during the content which you might be hitting if you search through. The extension should still trigger for those ads, but it's not as seamless an experience as the ad blockers. Is that what you're describing?
Open to feedback! Have my email in profile & listed with the extension
[+] [-] Andrews54757|2 years ago|reply
[1] https://github.com/LuanRT/YouTube.js
[2] https://github.com/Andrews54757/FastStream
[3] Chrome (also available for Firefox): https://chromewebstore.google.com/u/1/detail/faststream-vide...
[+] [-] eyegor|2 years ago|reply
Edit: fixed, works well in every test case
[+] [-] pvg|2 years ago|reply
[+] [-] tobias2014|2 years ago|reply
[+] [-] unknown|2 years ago|reply
[deleted]
[+] [-] corn-dog|2 years ago|reply
[+] [-] kim0|2 years ago|reply
[+] [-] cbozeman|2 years ago|reply
[+] [-] nirui|2 years ago|reply
I installed mine after YouTube starts to show 45 minute (yes, indeed) long ads to me, the entire pod cast session of it, AFTER I've watched the first ad but decided not to tap "Skip Ad".
If YouTube don't want to control the quality of what they are showing, then guess I'll just help them not showing it. And if doing so is a cause for a ban, then I guess just ban me :)
[+] [-] mattkenefick|2 years ago|reply
https://chromewebstore.google.com/detail/nhjphlheoepniijfpao...
[+] [-] titaniumtown|2 years ago|reply
[+] [-] chii|2 years ago|reply
This extension does not block, but instead just fast forward the ad (playback speed at 10x - tbh, it could'be been at 100x probably!) and mutes it. So from the youtube js perspective, the ad has played and wasn't blocked.
[+] [-] tomashubelbauer|2 years ago|reply
[+] [-] blacklight|2 years ago|reply
I've been running my Piped instance for a while, and there are many public Piped instances available on the Web as well.
And, if you don't want the headache of running your own proxied instance or hopping between public instances, use Platypush - it wires together Piped as a backend, with yt-dlp as a local proxy/scaper, and a multitude of media plugins to allow you streaming directly the YouTube media files to any media device. Plus, thanks to yt-dlp, it doesn't only work only with YouTube, but with hundreds of other websites with closed media URLs (Facebook, TikTok, Twitter...). And then just use LibRedirect/UntrackMe to convert all of the YouTube URLs to Piped URLs - you won't send a single packet to that digital sewage, and you won't even notice any difference.
Just...stopping relying on YouTube's frontend. I've been chasing their API and FE changes for a while. I even set up a small Selenium suite to scrape video results directly from their UI. It's quite clear that they've decided to invest enough resources to embrace full war against anybody who's sick of their ads. They are in a terminal phase of enshittification - the one where they look so much after they bottom line that they don't care if they to turn their whole platform into a big billboard or shut down all of their APIs. Either I consume videos from anywhere else, or, when I have no alternatives, I use Piped. But avoid youtube.com at all costs: it's a walking digital cancer in its terminal phase.
Even paying a subscription to them to get rid of the ads wouldn't help. I'd rather direct my donations to open or non-enshittified services than supporting a dying business model.
[+] [-] wolfendin|2 years ago|reply
[+] [-] sapphyrus|2 years ago|reply
[+] [-] gigglesupstairs|2 years ago|reply
[+] [-] crvdgc|2 years ago|reply
[1]: https://github.com/lawrencehook/remove-youtube-suggestions
[+] [-] jshier|2 years ago|reply
[+] [-] shrimp_emoji|2 years ago|reply
Also, if anyone knows, if you open a YouTube URL with something like mpv, I assume it starts playing as an "embedded video" in your video player. Does YouTube serve adds in that case?
[+] [-] kzrdude|2 years ago|reply