YouTube thumbnails and uBlock Origin

Monday, June 2, 2025 · 1 minute · 85 words

It is possible to modify YouTube’s appearance using uBlock Origin.

For example, to display smaller video thumbnails and get rid of “shorts” and of avatars :

  • from Firefox, go to extension management
  • in the menu attached to uBlock select “preferences”
  • go to the “My filters” tab
  • check the “Enable my custom filters” box if necessary
  • paste the following CSS configuration into the text area:
1youtube.com##ytd-rich-grid-row, #contents.ytd-rich-grid-row:style(display:contents !important;)
2youtube.com##ytd-rich-grid-renderer, html:style(--ytd-rich-grid-items-per-row: 5 !important;)
3youtube.com##ytd-rich-grid-renderer, html:style(--ytd-rich-grid-posts-per-row: 5 !important;) 
4youtube.com##ytd-rich-grid-media #video-title:style(font-size: 14px !important;)
5youtube.com##ytd-rich-section-renderer:style(display:none !important;)
  • press the “Apply” button
Youtube Hack