Lurker News
Hi HN!

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...
Code: https://github.com/rkk3/ad-accelerator

Comments (710) 75 threads

Earlier comments
indianmouse1 reply#
Looks like YouTube is already detecting this or has some logic to detect that the ads were played at a different speed.

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#
Thanks for trying it out!

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

Andrews547574 replies#
There is a javascript library for interfacing with Youtube's API directly. It can also run on browsers. Using this, it's pretty easy to create a simple extension that replaces the default video player with your own. You can do a lot to improve your experience this way. I've made one which allows for higher quality streaming, pre-buffering video in the background, more subtitling options, etc... [2] [3].

[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...

corn-dog1 reply#
Hey you should post about this on our extension devs server , people would be super interested https://discord.gg/mHPkCCBx
Andrews547571 reply#
I'll check out the Discord server because I want to see cool stuff other people are making, but I have no intention of seriously marketing my extension. I don't really want it to "take off" and become popular.

To me, FastStream is just a fun hobby project, not a product. I intend to always keep it free without unnecessary bloat or spyware of any kind. So, I don't really have a desire for it to be "successful" beyond it being immediately useful to me and a couple of my friends.

corn-dog#
That’s totally cool I appreciate your intentions with the extension :) people have built some really cool things with extensions
eyegor1 reply#
Wow, faststream works great for normal web players. Doesn't seem to work on any youtube videos when using the ff extension in the store though. Gets stuck loading forever.

Edit: fixed, works well in every test case

Andrews547571 reply#
Seems like it is a Youtube.js problem. will investigate, doesn't happen on Chrome.

EDIT: It seems like Firefox has some special unsafe eval rule breaking dash.js
EDIT2: Problem was actually FF's sendMessage not toString()'ing URL objects. I've fixed it in V1.2.1 for FF (approval by mozilla pending)
EDIT3: V1.2.1 (Firefox hotfix) is available now
https://addons.mozilla.org/en-US/firefox/addon/faststream/

eyegor2 replies#
Kind of unrelated, but how difficult do you think it would be to hack support for glsl shaders in a browser? I tried to look into it once, but got a bit lost in the media source side of things. My idea was to try to add glsl shaders as post processing to video streams like in mpv but without having to jump through all the hurdles of passing data to mpv.

Example of a shader I was playing with https://github.com/TianZerL/ACNetGLSL

Continue this thread — 2 replies

pvg#
Do you happen to know how well (or at all) the library supports subs/sub notifications and if people have built alternative UIs around that? The default youtube UI for that is a tremendous clunkfest.
tobias2014#
This is nifty! It might be interesting to interface it with Sponsorblock in the future.
cbozeman1 reply#
You're doing the Lord's work. Thank you.
nirui#
Now with this bit of free free-time, the Lord might finally be able to convince YouTube to make their ads more bearable, so people don't have to install ad blockers to begin with.

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 :)

Load more comments