Skip to content

Instantly share code, notes, and snippets.

@Californ1a
Last active June 13, 2024 09:53
Show Gist options
  • Save Californ1a/ca4e1c55bb1b3f84384e0d45f14c48cb to your computer and use it in GitHub Desktop.
Save Californ1a/ca4e1c55bb1b3f84384e0d45f14c48cb to your computer and use it in GitHub Desktop.
Change YouTube homepage grid count (youtube thumbnail resize)
/* Credit https://chrome.google.com/webstore/detail/youtube-thumbnail-resizer/pbkkiocccjpeadoiakfbljdbhhdimoac
It's seriously just 1 css rule! 🤯 */
.ytd-rich-grid-renderer {
--ytd-rich-grid-items-per-row: 6;
}
/* Updated version: https://reddit.com/r/youtube/comments/qwjc10/how_to_display_more_thumbnailsitems_on_youtube/hl4fwty/ */
ytd-rich-grid-renderer {
--ytd-rich-grid-items-per-row: 6 !important;
}
ytd-rich-grid-renderer > #contents > ytd-rich-grid-row,
ytd-rich-grid-renderer > #contents > ytd-rich-grid-row > #contents {
display: contents;
}
/* Optional add a bit of right margin */
ytd-rich-item-renderer {
margin-right: 4px;
margin-left: 10;
display: inline-block;
margin-bottom: 14px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment