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.

  • zaknenou@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    11 months 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 ?

    • Contend6248@feddit.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 months ago

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

      You can try opening any MP4 with Firefox

    • Telorand@reddthat.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 months ago

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