Hi all,

I use ublock origin in medium blocking mode which blocks a lot of urls by default, google / youtube included. For the longest time I have to unblock, google.com, googlestatic.com, youtube.com (and usually some more) every time I want to watch an embedded video.

I don’t use the youtube website in general, I use freetube for all my youtube watching. Libredirect even opens direct youtube links in freetube but it can’t handle embedded videos (at least not in a way without unblocking the urls before).

The best solution would be a userscript or extension that replaces all embedded youtube videos with links I can click to open them in freetube. I was surprised I couldn’t find something like this. Does anybody know about a solution?

*EDIT: I found a a way to make embedded youtube videos clickable: https://xcancel.com/gorhill/status/1377613397710229506#m

This is straight from the ublock origin developers. Sadly even in this case you have to globally unblock youtube.com and google.com which is a no go for me.

Cheers

  • mnmalst@lemmy.zipOP
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    Not directly. If I select embedded in libredirect it uses invidious and for that to work I have to unblock the urls as well.

      • mnmalst@lemmy.zipOP
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        That’s what I am doing but it doesn’t work for EMBEDDED, which is the point of this post.

        • noorbeast@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          What browser are you using and can you please post a site with embedding that does not work for you.

          I have Librewolf, Ublock set to medium mode, libredirect Redirect Type set to both, Embed Frontend set to Invidious but with no instance selected.

          Most sites with embedded youtube have ‘Watch on Youtube’ bottom left and you can just right click and select Redirect in librediract. Some don’t have that but most allow right click where you can select the url that can be pasted into FreeTube.

          • mnmalst@lemmy.zipOP
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 day ago

            Hey, thanks for the reply.

            I have exactly the same setup as you, I also use librewolf and all sites that have embedded youtube (or any embedded video) don’t work.

            This one for example: https://www.androidauthority.com/hands-on-one-ui-7-home-up-3522949/

            With medium mode enabled I just have a white space in the middle of the article. When I manually allow “youtube.com” and “google.com” the video loads.

            Do you get a different behavior?

            • irotsoma
              link
              fedilink
              arrow-up
              2
              ·
              15 hours ago

              I have it set up with “only not embedded” and then I let the preview load and click on the YouTube link to make it pop out and it redirects to Invidious and works. Not directly watching it embedded, but it works well enough for me. I just tested this site on my phone and it worked. Should work on desktop similarly. Just with this you have to get to the point where it loads the preview of the video at least, so you can click to open it outside of the embed.

              I use librewolf on desktop and IronWolf on mobile with the libredirect plugin. And I have a pihole that does ad blocking, so eventhough I don’t have YouTube totally blocked, it refuses to play even with a wide open browser.

              I’ve never gotten the embedded option to work, but Google is constantly fighting Invidious, and pop-out is a minor inconvenience for me.

              • mnmalst@lemmy.zipOP
                link
                fedilink
                arrow-up
                1
                ·
                4 hours ago

                I mean sure, but “to get the preview to work” means I have to globally unblock google.com and youtube.com which means all sites can track me at that point which I am not willing to accept. I think you have those two domains not blocked? Otherwise I don’t see how it could work, no matter if you use the “embedded option” in libredirect or not.

                Thanks for testing it!

        • birdcat@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          doesn’t work I think. block embedded stuff and make it so that when you click on the placeholder, it opens FreeTube

          • mnmalst@lemmy.zipOP
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            That’s what I want to do and was my initial question. How do I do that with medium mode enabled?

            • birdcat@lemmy.ml
              link
              fedilink
              arrow-up
              2
              ·
              edit-2
              8 hours ago

              i dont, as I came to the conclusion that medium mode is too much work and not worth it (especially on mobile). Got Phoenix and manually imported some of the blocklists into Ironfox (for example “⛔ yokoffing’s click2load filters” does what is described in the x-post you linked, but as you noted, you will still connect youtube

              • mnmalst@lemmy.zipOP
                link
                fedilink
                arrow-up
                1
                ·
                4 hours ago

                ok, thanks for the confirmation, looks like there is no option to achieve what I want.