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