Force YouTube to show compact grid (max 6 videos per row) rather than "slim" grid (max 3 videos per row)
< Opiniones de YouTube - Force Compact Grid (increases max # videos per row)
I've found injecting the following CSS along with your script fixes it, in case this helps you:
.style-scope.ytd-rich-grid-renderer {
--ytd-rich-grid-items-per-row: 6;
}
#contents > ytd-rich-grid-row,
#contents > ytd-rich-grid-row > #contents {
display: contents;
}
I still see 6 videos per row on the home page. What resolution (window screen size) and page zoom are you using?
The reason I'm not using CSS to hardcode ytd-rich-grid-items-per-row is that the actual value is dynamic based off window screen size.
I still see 6 videos per row on the home page. What resolution (window screen size) and page zoom are you using?
The reason I'm not using CSS to hardcode ytd-rich-grid-items-per-row is that the actual value is dynamic based off window screen size.
1080p, full window, default zoom.
It seems to be only on some accounts, much like whether one gets "For You" on channel pages. I tested on 2 different accounts, one gets 5 across, one gets 6 (same browser and computer), so it's not universal.
Seems to have been broken again on the main page, 5 videos instead of 6 across. Channel pages show 6 across as expected.