thanks, when i press top-right X on shorts on YT, they just go away for a while… why not forever TY? why you have to keep insisting?
remon@ani.social 1 month ago
Add this to your uBlock:
!death to #shorts youtube.com##:matches-path(/)a#thumbnail[href*="/shorts"]:upward(7) youtube.com##:matches-path(/)a#endpoint[title*="Shorts"] youtube.com##h2>span:has-text(Shorts):upward(7)
expatriado@lemmy.world 1 month ago
tiramichu@sh.itjust.works 1 month ago
Because they want you to watch shorts. They know that people who watch shorts are the most brainrotted on the platform, and the ones who will keep scrolling and watching video after video, and seeing ad after ad, and those are the users YouTube wants all other users to be like.
And so they will push shorts in your face again and again no matter how much you say no, because they think eventually they’ll break you.
The close button is just a temporary placebo to make it feel like you’re the one in control.
You’re not the one in control.
homes@piefed.world 1 month ago
What does this do? I’d like to know, specifically, before I add some random code from the Internet into my ad blocker.
tiramichu@sh.itjust.works 1 month ago
Blocks shorts.
uBlock filters use a modified form of CSS selectors to determine what parts of a page to hide.
If you know vaguely how CSS selectors work you can infer that the filter definition is matching on
youtube.comand is finding an element whose title property isshorts- so it seems to be doing an appropriate thing.The important part is that uBlock filters are not executable; you can’t inject a malicious executable through one, as they are simply patterns which describe what parts of a page should be hidden, and hiding content is all they can do.
The worst that a filter could do is hide something that shouldn’t be hidden.
homes@piefed.world 1 month ago
thank you very much. this is exactly what I wanted to know ;)
remon@ani.social 1 month ago
It removes short-videos from the main page and search results, as well as removing the link from the menu.
Axolotl_cpp@feddit.it 1 month ago
It removes shorts, just read it
Anarki_@lemmy.blahaj.zone 1 month ago
This doesn’t do anything for me.
Do I add it in My filters?
remon@ani.social 1 month ago
Yes.
I wrote that myself, using Firefox on macOS, it might not work in other browsers (though it should generally work in firefox and chrome across platforms). It probably doesn’t work on mobile.
Cantaloupe@lemmy.fedioasis.cc 1 month ago
I like YouTube shorts though. Better than Tiktok.
remon@ani.social 1 month ago
Then get out of my comment thread.
Buage_@piefed.social 1 month ago
ty