Skip to content

Instantly share code, notes, and snippets.

@fxzzi
Last active April 6, 2026 11:51
Show Gist options
  • Select an option

  • Save fxzzi/ded4399155282a1653cc981de2312d03 to your computer and use it in GitHub Desktop.

Select an option

Save fxzzi/ded4399155282a1653cc981de2312d03 to your computer and use it in GitHub Desktop.
! Fix random / inconsistent gaps on youtube home
www.youtube.com###contents.ytd-rich-grid-renderer > :not(ytd-rich-item-renderer, ytd-continuation-item-renderer)
www.youtube.com##ytd-rich-item-renderer[is-in-first-column]:style(margin-left: calc(var(--ytd-rich-grid-item-margin)/2) !important)
www.youtube.com##ytd-ghost-grid-renderer
! 5 videos per row on home page
www.youtube.com##ytd-rich-grid-renderer:style(--ytd-rich-grid-items-per-row: 5 !important;)
! YT Homepage and Subscriptions (Grid View) - Hide the Shorts section
youtube.com##[is-shorts]
! YT Menu - Hide the Shorts button
www.youtube.com###guide [title="Shorts"], .ytd-mini-guide-entry-renderer[title="Shorts"]
! YT Search - Hide Shorts
www.youtube.com##ytd-search ytd-video-renderer:has([overlay-style="SHORTS"])
! YT Search, Channels, Subscriptions (List View) and Sidebar/Below Player Recommendations - Hide the Shorts sections
www.youtube.com##ytd-reel-shelf-renderer
! YT Channels - Hide the Shorts tab
www.youtube.com##[tab-title="Shorts"]
! YT Subscriptions - Hide Shorts - Grid View
www.youtube.com##ytd-browse[page-subtype="subscriptions"] ytd-grid-video-renderer:has([overlay-style="SHORTS"])
! YT Subscriptions - Hide Shorts - List View
www.youtube.com##ytd-browse[page-subtype="subscriptions"] ytd-video-renderer:has([overlay-style="SHORTS"])
! YT Subscriptions - New Layout - Hide Shorts
www.youtube.com##ytd-browse[page-subtype="subscriptions"] ytd-rich-item-renderer:has([overlay-style="SHORTS"])
! YT Sidebar - Hide Shorts
www.youtube.com###related ytd-compact-video-renderer:has([overlay-style="SHORTS"])
! YT Homepage - Hide the Posts Section
www.youtube.com##ytd-browse[page-subtype="home"] ytd-rich-section-renderer:has(ytd-rich-item-renderer[is-post])
! YT Homepage - Hide Posts
www.youtube.com##ytd-browse[page-subtype="home"] ytd-rich-item-renderer[is-post]
! Brand image in the corner of videos
youtube.com##.ytp-button.branding-img-container
! Hide the "Thanks" button under videos
www.youtube.com##[aria-label="Thanks"]:upward(yt-button-view-model)
! Also the "Clip" button
www.youtube.com##[aria-label="Clip"]:upward(yt-button-view-model)
! hide "Search with your voice" button (YouTube users have no voice)
www.youtube.com###masthead #center #voice-search-button
! hide "+Create" button
www.youtube.com###masthead #end #buttons > ytd-button-renderer
! hide "Explore" menu section
www.youtube.com##ytd-guide-section-renderer:has(#guide-section-title:has-text(/Explore/))
! hide "More from YouTube" menu section
www.youtube.com##ytd-guide-section-renderer:has(#guide-section-title:has-text(/More from YouTube/))
! hide "1080p Premium HD" (which is nothing more than an ad for premium) in video quality settings menu
www.youtube.com##.ytp-quality-menu .ytp-menuitem:has(.ytp-premium-label)
! hide that fucking "Experiencing interruptions?" toast message because of AdBlock
www.youtube.com##tp-yt-paper-toast#toast:has(yt-button-renderer#action-button a[href*=blocker])
! hide the like dislike comment box in fs
www.youtube.com##.html5-video-player .ytp-overlay-bottom-right
! old youtube player ui
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.delhi_modern_web_player, false)
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.delhi_modern_web_player_icons, false)
www.youtube.com##+js(trusted-replace-argument, String.prototype.split, this, repl:/&delhi_modern_web_player=true//, condition, H5_async_logging_delay_ms=)
www.youtube.com##+js(trusted-replace-argument, String.prototype.split, this, repl:/&delhi_modern_web_player_icons=true//, condition, H5_async_logging_delay_ms=)
! larger text size for timestamp and chapters
youtube.com##.html5-video-player .ytp-left-controls:style(font-size: 120% !important;)
! larger volume icon
youtube.com##.html5-video-player .ytp-volume-icon {transform: scale(1.2); display: flex;}
! convert shorts to regular player
||youtube.com/shorts/*$uritransform=/shorts\/(.*)/watch?v=\$1/
! remove radio in url
||youtube.com/watch*&start_radio$doc,removeparam=~v
! 28 Mar 2026 https://gitlab.com
gitlab.com##.ai-panels
! block the join button for yt memberships
www.youtube.com###sponsor-button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment