gijsdev / ublock-hide-yt-shorts

uBlock Origin filter list to hide YouTube Shorts
MIT License
1.37k stars 82 forks source link

Shorts now appear in video recommendations. #1

Closed FlamingNinja42 closed 1 year ago

FlamingNinja42 commented 1 year ago

See attached image.

image

FlamingNinja42 commented 1 year ago

I found a filter which removes these:

www.youtube.com##ytd-reel-shelf-renderer.ytd-item-section-renderer

gijsdev commented 1 year ago

I think that filter would remove other sections with about the same style as that Shorts section in your screenshot. I always try to use a selector which specifically mentions Shorts to avoid removing non-Shorts content.

For example this is the filter I used that should remove this section (but doesn't in this case):

youtube.com##ytd-rich-section-renderer:has(#rich-shelf-header:has-text(Shorts))

I will try to take a look if this section pops up in my feed. Thanks for the heads up!

gijsdev commented 1 year ago

I just found this section on m.youtube.com. I removed this one with: m.youtube.com##ytm-rich-section-renderer:has(.reel-shelf-title-wrapper:has-text(Shorts))

So I suspect the following filter might work for the section you mentioned: youtube.com##ytd-rich-section-renderer:has(.reel-shelf-title-wrapper:has-text(Shorts))

Can you confirm if this filter works or not? If so, I will update the filterlist.

FlamingNinja42 commented 1 year ago

Nope this doesn't work.

Tried a few permutations, but I can't figure out anything other than the one which I posted.

FlamingNinja42 commented 1 year ago

www.youtube.com##ytd-reel-shelf-renderer.ytd-item-section-renderer:has(h2.ytd-reel-shelf-renderer.style-scope:has-text(Shorts))

Okay, this one worked in the end for me.

gijsdev commented 1 year ago

I condensed the filter a bit and added it to the list. Thanks for your help!