YouTube - Force Compact Grid (increases max # videos per row)

Force YouTube to show compact grid (max 6 videos per row) rather than "slim" grid (max 3 videos per row)

< Feedback on YouTube - Force Compact Grid (increases max # videos per row)

Review: Good - script works

§
Posted: 2023-02-04
Edited: 2023-02-04

Not sure if it's only on my system, but the compact grid on the subscription page has a bit of padding/margin on the left/right sides, whereas while using your script, on home/channel pages, there is none and it goes edge to edge. Is there any way to make it mimic the spacing so it appears more like the subscriptions page?

lbmaianAuthor
§
Posted: 2023-02-05

If you try resizing the window, you'll see that the subscription page also doesn't have padding. The home page is just unique in that its video thumbnails resize (up to a point) when resizing the window, while neither the subscription nor channel tab vidoe thumbnails do. I'm sure why that's the case; I'll need to delve deeper into YT's obfuscated code to figure out why.

§
Posted: 2023-02-06

Fair enough. I thought perhaps it had something to do with my modified Firefox settings (layout.css.devPixelsPerPx) which allow me to fit 6 across channel & subscription pages easily.

lbmaianAuthor
§
Posted: 2023-02-12

Investigated this and updated the script to disable the home page's "rich grid" such that it now matches that of subscription/channel pages.

§
Posted: 2023-02-12
Edited: 2023-02-12

Looks great! Finally, uniformity amongst the various video pages :)

At least in a full browser window, subscriptions resized differently than both homepage and channel pages (both of which resize thumbnails, whereas subscriptions reduces the number of thumbnails), but that could again be specific to my system.

This is still a 1000% improvement over the default Youtube UI. Thank you.

§
Posted: 2023-03-21

Investigated this and updated the script to disable the home page's "rich grid" such that it now matches that of subscription/channel pages.

Was working great before, but I just noticed that for whatever reason, the padding is once again gone on the main page, although it is present on channel pages.

lbmaianAuthor
§
Posted: 2023-03-21

*sigh* They probably changed the internals in some way to break that part of the script. I'll investigate it when I have the time.

§
Posted: 2023-03-22

YouTube can not stop trying to deliver the worst experience possible 🤣

lbmaianAuthor
§
Posted: 2023-04-03

I've fixed this again for the latest YT version.

§
Posted: 2023-04-04

Fantastic work, thank you.
Was it a difficult fix?

lbmaianAuthor
§
Posted: 2023-04-04

Took about an hour to retrace the internals.
Now I'm trying to figure out how to change the default sorting away from the "For You" stupidity they just added...though that would go in a separate userscript.

§
Posted: 2023-04-04
Now I'm trying to figure out how to change the default sorting away from the "For You" stupidity they just added...though that would go in a separate userscript.

That change hasn't hit me yet, channels are still sorting by latest, but that will definitely be annoying once it arrives, so good luck with the script.

§
Posted: 2024-06-05

is there a way to reduce the thumbnails to show only 5 across? 6 is too much or the spacing is fked, because theres massive gaps on the left and right leaving the thumbnails to be tiny in the center. (yellow/black scribbled area is a video i blocked out cuz it seems inappropriate)

(this 200kb image file size limit is annoying, had to put it through a resizer a few times to drop it from 500kb)

lbmaianAuthor
§
Posted: 2024-06-05

is there a way to reduce the thumbnails to show only 5 across? 6 is too much or the spacing is fked, because theres massive gaps on the left and right leaving the thumbnails to be tiny in the center. (yellow/black scribbled area is a video i blocked out cuz it seems inappropriate)

(this 200kb image file size limit is annoying, had to put it through a resizer a few times to drop it from 500kb)



Unfortunately not. This script doesn't actually specify the # videos per row. That's controlled by the internal grid style, and this script merely switches to the "compact grid" style for the pages its applicable for with no other side effects.

You can try this user css (with stylus extension) instead: https://userstyles.world/style/15314/more-thumbnails-per-row

Post reply

Sign in to post a reply.