gijsdev / ublock-hide-yt-shorts

uBlock Origin filter list to hide YouTube Shorts
MIT License
1.15k stars 63 forks source link

Hides but... #3

Closed Artur-Galis closed 10 months ago

Artur-Galis commented 1 year ago

It works but now youtube updated and it doesn't fill the place where there were a short e1925bd3-647c-4306-8204-96b7e2d869f4 d22c8a8c-fa93-464a-8af3-4e3d0a92d4e9

gijsdev commented 1 year ago

Since YouTube's small layout update it groups every row together and forces that row to take up the full width of the feed. This issue is unfortunately not something that's fixable with a uBlock filterlist, as it requires more than just hiding elements.

If someone knows a way to fix this, feel free to submit a pull request or send me in the right direction.

Artur-Galis commented 1 year ago

I fixed it with this, not my code but saw it somewhere in Reddit

! YT Subscriptions Hide Shorts - Grid View youtube.com##ytd-browse[page-subtype="subscriptions"] ytd-rich-item-renderer [overlay-style="SHORTS"]:upward(ytd-rich-item-renderer) ! YT Subscriptions Row Fix to 6 youtube.com##ytd-browse[page-subtype="subscriptions"] ytd-rich-grid-row:style(display:contents !important;) youtube.com##ytd-browse[page-subtype="subscriptions"] #contents.ytd-rich-grid-row:style(display:contents !important;) youtube.com##ytd-browse[page-subtype="subscriptions"] ytd-rich-grid-renderer:style(--ytd-rich-grid-items-per-row: 6 !important;) ! YT Subscriptions Row Fix to 6 (Font Size fix) youtube.com##ytd-browse[page-subtype="subscriptions"] #video-title.ytd-rich-grid-media:style(font-size: 1.4rem !important; line-height: 2rem !important;) youtube.com##ytd-browse[page-subtype="subscriptions"] #metadata-line.ytd-video-meta-block:style(font-size: 1.2rem !important; line-height: 1.8rem !important;) youtube.com##ytd-browse[page-subtype="subscriptions"] #video-title.ytd-rich-grid-slim-media:style(font-size: 1.4rem !important; line-height: 2rem !important;)

gijsdev commented 1 year ago

Oh, interesting. I will screw around with it and see if I can make it work without screwing up anything or changing the layout too much.

gijsdev commented 10 months ago

Fixed it in v1.6.0