gitlab.com

CoolingJam, to linuxmemes in 01001001 01110100 00100000 01101001 01110011 00100000 01000111 01001110 01010101 00100000 00101011 00100000 01001100 01001001 01001110 01010101 01011000

For the lazy people:

btw I use Arch.

zaknenou, to piracy in I made a thing to make playing YouTube videos locally from your browser easier
@zaknenou@lemmy.dbzer0.com avatar

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,

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

Contend6248,

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

You can try opening any MP4 with Firefox

danielquinn,
@danielquinn@lemmy.ca avatar

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.

qx128, to piracy in I made a thing to make playing YouTube videos locally from your browser easier

You are the best.

Morgikan, to piracy in I made a thing to make playing YouTube videos locally from your browser easier
@Morgikan@lemm.ee avatar

I was curious how you implemented this as it’s pretty much the default YT bypass qutebrowser users use. Then I read the MIME type addition you did and had a good laugh. That’s clever. Always nice to see a fellow Go user, too.

danielquinn,
@danielquinn@lemmy.ca avatar

Is there another way to do this? This hack was the only way I could figure out how to get Firefox to invoke an external binary, but if there’s a more conventional way to do it, I’d like to know 'cause I have another more complicated project in need of a pattern much like this one.

Morgikan,
@Morgikan@lemm.ee avatar

No, the way you did it is the only way I can think you can. Otherwise it opens up things to arbitrary code execution. I’m not exactly sure how qutebrowser gets away with it, but I know it’s built on QT so maybe it just isn’t running sandboxed or had some special method for calling external binaries/scripts. You might take a look at that project and see, but Firefox/qutebrowser is probably like comparing apples and oranges.

danielquinn,
@danielquinn@lemmy.ca avatar

That’s actually very helpful, thanks. I’ve been working on another project to open certain URLs in specific browsers/profiles, and wanted to be sure that I wasn’t missing a more obvious design pattern. The project is here if you’re curious.

01189998819991197253, to piracy in I made a thing to make playing YouTube videos locally from your browser easier
@01189998819991197253@infosec.pub avatar

Awesome! Thanks!

demesisx, to piracy in I made a thing to make playing YouTube videos locally from your browser easier
@demesisx@infosec.pub avatar

Additional pro-tip: you can just launch mpv from the terminal using the YouTube url and it will open a new player.

MonkCanatella, to piracy in I made a thing to make playing YouTube videos locally from your browser easier

This is sweet, this exact same idea has been kicking around my head for awhile but I’ve never taken the initiative.

I did write a script (powershell lol), that uses yt-dlp to download all your subscription videos as they come in and sends a notification. Could easily be modified to work on linux and use ntfy or another notification service. ALso no need to scrape your subscriptions as it stays in sync with your currently subscribed channels.

khorovodoved, to piracy in I made a thing to make playing YouTube videos locally from your browser easier

Thank you for your work, but why not just use ff2mpv?

danielquinn,
@danielquinn@lemmy.ca avatar

Honestly, because I didn’t know (a) that ff2mpv even existed, or that (b) mpv could play YouTube URLs directly. So thanks! I learnt two things today :-)

It was still a fun project though 'cause I learnt how to write a Firefox extension and get the browser to launch programs on-click, so not a waste of time!

petrescatraian, to piracy in I made a thing to make playing YouTube videos locally from your browser easier

@danielquinn Outstanding work. Congrats!

danielquinn,
@danielquinn@lemmy.ca avatar

Thanks!

Burn_The_Right, to piracy in I made a thing to make playing YouTube videos locally from your browser easier

Great username, btw.

deleted, to piracy in Created an alternative to knock for downloading ACSM files

deleted_by_author

  • Loading...
  • jo1gi,

    No acsm. It’s books protected by Adobe DRM.

    NoIWontPickaName, to piracy in Created an alternative to knock for downloading ACSM files

    I misread that acronym at first and was like 😳

    Caligvla,
    @Caligvla@lemmy.dbzer0.com avatar

    No kidding, looked at this first thing in the morning while groggy and took a good minute to realize what it actually was.

    axo, to piracy in Created an alternative to knock for downloading ACSM files

    Is there a difference to the calibre plugin (github.com/Leseratte10/acsm-calibre-plugin), besides being an independent program?

    jo1gi,

    Just the implementation and mine does not require Calibre (I know the plugin can be used without Calibre, but it is not its primary use case).

    VikingHippie, to piracy in The Bypass Paywalls Clean extension for Firefox

    Needs an elaborate by github standards workaround to work on android? I think I’ll just continue to avoid sites whose paywalls archive.ph and 12foot can’t defeat…

    kirk781,

    Well, one does need to sideload two apps, a browser and then the corresponding xpi file which will install the add on.

    There was/is an alternate way on Firefox Nightly, I think to create a custom add on collection which will add it to mobile Firefox normally. But yes, you are correct, only a miniscule amount of people would care to run it on Android(though it is always nice to have a workaround).

    jollyroger,

    You can add the filter list mentioned in the first comment in this thread in your Ublock origin add on on your mobile version of firefox

    mintycactus, to piracy in The Bypass Paywalls Clean extension for Firefox
    @mintycactus@lemmy.world avatar

    deleted_by_author

  • Loading...
  • Otome-chan,
    @Otome-chan@kbin.social avatar

    it's more than a filterlist, also custom code (though the repo you shared has the userscripts that you can install).

    TarquinNimrod,

    Thanks for this, works great for several of my local papers.

    doyadig,

    I thought the addon had advantages vs simply add a filter list to ubo, or am I wrong?

    z3rOR0ne,
    @z3rOR0ne@lemmy.ml avatar

    On Android, you can add Ublock to the Firefox mobile browser (use the Mull fork and you even have about:config). This plus NoScript gives a seamless experience between my phone and my Linux desktop. Almost never hear or see ads thanks to this and LibreTube/Sponsorblock.

    akilou,

    Do you know if the custom lists sync across machines? If I add it to my laptop, will it show up in Firefox on my desktop?

    z3rOR0ne,
    @z3rOR0ne@lemmy.ml avatar

    I don’t know as I don’t use Firefox’s sync feature, but I don’t believe so. I customize everything via config and txt files from my git repos.

    If anyone else knows though, please chime in.

    akilou,

    Future me here. Confirmed that custom lists do not sync across. You have to re-add them on each computer.

    optissima,

    Hey future you, you can sync uBo lists to Drive and have them sync under settings

    Skimmer,

    It does, it works better and covers more sites, but at the cost of security (increasing attack surface) and using more resources. Pros and cons to both.

    PolarisFx,
    @PolarisFx@lemmy.dbzer0.com avatar

    Didn’t know that, I actually switched to Kiwi Browser because I couldn’t get the addon to work in IceRaven. And it’s one of those addons I really couldn’t live without.

    akilou,

    UBo is so damn powerful. What can’t it do?

    Resistentialism,

    Find me someone who’ll love me.

    vaselined,

    I love you

    Resistentialism,

    I love you too

    Wodge,
    @Wodge@lemmy.world avatar

    Now kiss

    there1snospoon,

    Now frot

    Amazed,

    Peace in the Middle East.

    sir_reginald,
    @sir_reginald@lemmy.world avatar

    this is great, thanks!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #