Tired of YouTube wasting your screen space with just 3 videos per row?
This userscript forces 5 videos per row across the homepage and channel views β and keeps them there, even as new videos load dynamically.
- π₯ Locks in 5 videos per row consistently
- β»οΈ Fixes YouTubeβs lazy-loaded layout bugs
- π‘ Reacts to page navigation inside YouTube (SPA-safe)
- π Cleans up margins & font sizing for a better aesthetic
- β‘ Lightweight, fast, and easy to install
- More content visible per screen
- Cleaner, more professional layout
- Zero UI bugs or element clipping
- Works with both light and dark mode
- Install Tampermonkey (or similar)
- Click π Install the Script
- Refresh YouTube and enjoy the upgrade!
- β Chrome
- β Firefox
- β Safari
- β Edge
Fully tested across desktop browsers.
Mobile not currently supported.
YouTube uses lazy grid loading and single-page navigation. This script:
- Overrides their CSS variable
--ytd-rich-grid-items-per-row - Observes DOM mutations and reapplies layout styles
- Forces reflow to handle early-rendered rows
No jank. No flash. Just clean layout.
MIT β Use it, remix it, ship it.