202

The other day someone was complaining about the new ad blocker-blocker on YouTube and I mentioned that it might be fun to write a Firefox extension that would just load up yt-dlp and play the video through mpv.

It turns out, writing a Firefox extension is easy and tricking Firefox into launching yt-dlp isn't much harder (though it does require some annoying configuration on the user's end).

Anyway, if you're a Linux user, feel free to try it out. I don't know how much I'm going to pour into this, but as an exercise of "can this be done", it was pretty good for a few hours on a Friday night.

you are viewing a single comment's thread
view the rest of the comments
[-] zaknenou@lemmy.dbzer0.com 9 points 1 year ago* (last edited 1 year ago)

can you please share a video of how it looks like when implemented. I think it is already possible to watch videos using VLC ?

[-] Telorand@reddthat.com 6 points 1 year ago

I've had a couple videos that wouldn't load properly in VLC. Rare, but it happens. Alternatives are always welcome.

[-] danielquinn@lemmy.ca 4 points 1 year ago

I don't think I have it in me to put together a video, but I can describe it if you like.

Once you install the extension and follow the setup instructions, you just go to a YouTube page. The extension adds an ugly button to the top-left of the page that says "bypass". When you click it, Firefox launches yt-dlp [the URL you're at] -o - | mpv - which basically just downloads the video and streams the output through the mpv video player. So now you're watching just the video, with no web page necessary.

[-] Contend6248@feddit.de 2 points 1 year ago

My best guess would be that the internal player of Firefox comes to play here.

You can try opening any MP4 with Firefox

this post was submitted on 13 Oct 2023
202 points (99.5% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54716 readers
285 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS