2 comments

[ 2.2 ms ] story [ 16.9 ms ] thread
YouTube is on war with uBlock Origin. It detects the ad blocker and annoys you.

What could be a solution? In my case, stop using the web player. And use mpv instead.

But manually copying the URL and opening the mpv with it each time you want to play a video is a hassle. That's why there was someone who created a "Open in MPV" extension a long ago, but nowadays it's not available anymore because it's non-conformant to manifest V3 (I think).

I ain't a professional at creating web extensions so I asked another Google product (heh) Gemini to help me with it. It helped me through developing and debugging the extension and helping scripts.

I now share my Gist with you so that you could test this yourself. The installation is manual, I don't know if I'll actually publish this an extension to the store.

Tested on Linux and macOS. Windows test is coming soon.

UPD: As @LitCast fairly [pointed out](https://www.reddit.com/r/mpv/comments/1l6gr0h/comment/mwomns...), you could just use [External Application Launcher](https://chromewebstore.google.com/detail/external-applicatio...) extension instead.

Thumbs up for the effort.

Though I don't get this at all. On FF with that extension YT/Google/Alphabet seems to be at war with. At the moment, or rather since about 2 years, this extension alone under FF with the right subscriptions seems to be sufficient to play without breaks/pauses, be it in the foreground, or some music in a background tab. Still have yt-dlp installed though, but only for archiving purposes.