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

Show all comments

Showing thread 10 of 75

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.