! 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...) 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...