How to replace or open blocked embedded youtube videos
from mnmalst@lemmy.zip to privacy@lemmy.ml on 07 Feb 2025 09:28
https://lemmy.zip/post/31560108

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

#privacy

threaded - newest

Tundra@lemmy.ml on 07 Feb 2025 09:32 collapse

Can’t you set Libredirect to embed videos?

mnmalst@lemmy.zip on 07 Feb 2025 09:54 collapse

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

noorbeast@lemmy.zip on 07 Feb 2025 10:01 collapse

You can set libredirect to use FreeTube.

mnmalst@lemmy.zip on 07 Feb 2025 10:14 collapse

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

birdcat@lemmy.ml on 07 Feb 2025 11:11 next collapse

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

mnmalst@lemmy.zip on 07 Feb 2025 11:20 collapse

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

birdcat@lemmy.ml on 08 Feb 2025 06:17 collapse

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.zip on 08 Feb 2025 10:31 collapse

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

noorbeast@lemmy.zip on 07 Feb 2025 14:00 collapse

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.zip on 07 Feb 2025 14:10 collapse

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: androidauthority.com/hands-on-one-ui-7-home-up-35…

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?

[deleted] on 07 Feb 2025 21:41 next collapse

.

irotsoma@lemmy.blahaj.zone on 07 Feb 2025 23:15 collapse

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.zip on 08 Feb 2025 10:30 collapse

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!