← Home

More videos per row in youtube

@date=2025-06-03
@tags=youtube, browser-extensions

I like youtube, but I don't like the recent change they did to make it so only 4 giant video "thumbnails" show per row on my large computer display. Why did I pay for all these pixels, if not to shove data into my head faster.

Fortunately this is super easy to fix.

Add the Code Injector add on for Chrome, Firefox, or Edge https://github.com/Lor-Saba/Code-Injector

  1. go to youtube
  2. click on the browser bar button for the extension
  3. Click add rule
  4. In the upper right corner click "Current Host"
  5. Click on the CSS tab
  6. Enter this css and click save:
html #contents{
--ytd-rich-grid-items-per-row: 8;
}

  
/* resolve some fonts getting squished */
html ytd-rich-grid-media[typography-bump] #video-title.ytd-rich-grid-media{
  font-size: 1rem;
  line-height: 1.4rem;
}

Now you can have the glory of 8 items in a row (you have to reload after you save).

You can change 8 to be whatever you like it to be. I tried out 12, and even 20, but I found 8 to be the sweet spot.