Skip to content

Instantly share code, notes, and snippets.

@mvaneijgen
Last active August 14, 2025 17:26
Show Gist options
  • Select an option

  • Save mvaneijgen/83f15a8298326699847b79cc97179bb7 to your computer and use it in GitHub Desktop.

Select an option

Save mvaneijgen/83f15a8298326699847b79cc97179bb7 to your computer and use it in GitHub Desktop.
/* Hide shelves and items we don't want */
ytd-rich-shelf-renderer {
height: 0 !important;
opacity: 0 !important;
pointer-events: none !important;
}
.ytd-rich-grid-renderer ytd-rich-item-renderer:has(ad-badge-view-model),
.ytd-rich-grid-renderer ytd-rich-item-renderer:has(.badge-style-type-members-only),
.ytd-rich-grid-renderer ytd-rich-item-renderer:has([aria-label="LIVE"]),
.ytd-rich-grid-renderer ytd-rich-item-renderer:has([aria-label="Upcoming"]),
ytd-video-renderer [href^="/shorts/"],
[title="Shorts"],
ytd-miniplayer,
ytd-reel-shelf-renderer,
.ytd-rich-shelf-renderer:has(.ytd-rich-grid-slim-media),
[chip-style="STYLE_HOME_FILTER"],
test {
display: none !important;
}
/* Keep last home filter visible */
[chip-style="STYLE_HOME_FILTER"]:last-of-type {
display: block !important;
}
/* Hide left menu sections except the first and the 5th */
.tp-yt-app-drawer ytd-guide-section-renderer:nth-child(1n+2):not(.tp-yt-app-drawer ytd-guide-section-renderer:nth-child(5)) {
display: none !important;
}
.tp-yt-app-drawer #footer {
display: none !important;
}
/* Hide dismissible section (thumbnails + titles in feed) */
#dismissible {
display: none !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment