zlacker

[return to "Someone at YouTube needs glasses"]
1. herpdy+R4[view] [source] 2025-04-30 15:42:08
>>jayden+(OP)
You can insert (and tweak) this into uBlock Origin filters:

    ! YouTube Fix & Customization by Arch v1.8.4 ! (1/11) YouTube 4 Videos Per Row Fix (Home and Channel Pages) / YouTube Fix & Customization

    youtube.com##ytd-rich-grid-row, #contents.ytd-rich-grid-row:style(display:contents !important;)

    youtube.com##ytd-rich-grid-renderer, html:style(--ytd-rich-grid-items-per-row: 5 !important;)

    youtube.com##ytd-rich-grid-renderer, html:style(--ytd-rich-grid-posts-per-row: 5 !important;)
(source: https://www.reddit.com/r/youtube/comments/1g5l9mc/comment/ls...)
◧◩
2. a123b4+Wb[view] [source] 2025-04-30 16:11:20
>>herpdy+R4
Didn't the new Chrome update break uBlock, or is that just for my test cell? I've been in mourning...
◧◩◪
3. thamer+sR[view] [source] 2025-04-30 19:45:06
>>a123b4+Wb
The following CSS equivalent worked for me, using the "Custom CSS by Denis" Chrome extension[1]:

    ytd-rich-grid-renderer div#contents {
      /* number of video thumbnails per row */
      --ytd-rich-grid-items-per-row: 5 !important;
    
      /* number of Shorts per row in its dedicated section */
      --ytd-rich-grid-slim-items-per-row: 6 !important;
    }

I first tried it with the "User JavaScript and CSS" extension, but somehow it didn't seem able to inject CSS on YouTube. Even a simple `html { border: 5px solid red; }` would not show anything, while I could see it being applied immediately with the "Denis" CSS extension.

If someone can recommend a better alternative for custom CSS, I'd be interested to hear it. I guess Tampermonkey could work, if you have that.

[1] https://chromewebstore.google.com/detail/custom-css-by-denis...

[go to top]