Skip to content

Instantly share code, notes, and snippets.

@smaugfm
Created May 26, 2024 08:50
Show Gist options
  • Save smaugfm/1cd23963464c5cda6cbf33fce28f2e57 to your computer and use it in GitHub Desktop.
Save smaugfm/1cd23963464c5cda6cbf33fce28f2e57 to your computer and use it in GitHub Desktop.
No distraction YouTube (based on Focus-for-Youtube)
[Adblock Plus 3.6]
! Title: Focus for YouTube
! Version: 2021v2.1
! Expires: 14 days
! Description: This list removes almost all distractions on YouTube
! This list is based on DandelionSprout Even More Pure Video Experience filter list https://github.com/DandelionSprout/adfilt/blob/master/YouTubeEvenMorePureVideoExperience.txt
! Homepage: https://github.com/hadig/Focus-for-Youtube
! Removes Home Page feed
youtube.com##ytd-browse[page-subtype*='home']
m.youtube.com##ytm-browse > ytm-single-column-browse-results-renderer > div > div[tab-identifier*="FEwhat_to_watch"]
! Removes unnecessary section buttons
youtube.com###items > ytd-guide-entry-renderer[is-primary]:nth-child(2)
youtube.com###items > ytd-guide-entry-renderer[is-primary]:nth-child(4)
youtube.com###items > ytd-guide-entry-renderer[is-primary]:nth-child(5)
youtube.com###guide-renderer > #sections > ytd-guide-section-renderer:nth-child(2) > #items > ytd-guide-entry-renderer:last-child
youtube.com###guide-renderer > #sections > ytd-guide-section-renderer:nth-child(4)
youtube.com###guide-renderer > #sections > ytd-guide-section-renderer:nth-child(5)
youtube.com###guide-renderer > #sections > ytd-guide-section-renderer:nth-child(6)
youtube.com##ytd-mini-guide-renderer > #items > ytd-mini-guide-entry-renderer:nth-child(1)
youtube.com##ytd-mini-guide-renderer > #items > ytd-mini-guide-entry-renderer:nth-child(2)
youtube.com##ytd-mini-guide-renderer > #items > ytd-mini-guide-entry-renderer:nth-child(3)
! Removes video suggestions
##.ytp-endscreen-content
youtube.com,youtubekids.com###related
m.youtube.com##ytm-watch ytm-compact-video-renderer
m.youtube.com##[section-identifier=related-items]
/annotations_module.js$script,domain=youtube.com|youtu.be|youtube-nocookie.com
/endscreen.js$script,domain=youtube.com|youtu.be|youtube-nocookie.com
! Seems to remove "Recommended for you" suggestions
||youtube.com/related_ajax^
! Removes the large grey [YouTube Kids / game info] buttons below gaming videos
youtube.com##ytd-rich-metadata-renderer.ytd-rich-metadata-row-renderer
m.youtube.com##ytm-watch-metadata-app-promo-renderer
m.youtube.com##ytm-rich-metadata-renderer
! Aims to prevent video suggestions from showing up when pausing embedded videos
##.ytp-scroll-min
##.ytp-pause-overlay
youtube.com##.ytp-scroll-min
youtube.com##.ytp-pause-overlay
! Removes video epilogue suggestion overlays
youtube.com##.ytp-ce-element-show
! Removes a banner that promotes YouTube Premium
youtube.com###masthead-ad
! Aims to remove the "Recommended" tickers on top of YouTube embeds
##.ytp-cards-teaser
! Block "My mix" and autogenerated playlists
www.youtube.com#?#ytd-compact-radio-renderer:-abp-has(ytd-thumbnail-overlay-bottom-panel-renderer)
www.youtube.com#?#ytd-rich-item-renderer:-abp-has(ytd-thumbnail-overlay-bottom-panel-renderer)
! Same as above, but in the window after you finish a video. This does leave black squares where they were.
www.youtube.com#?#a.ytp-suggestion-set.ytp-videowall-still:has(.ytp-videowall-still-listlabel-mix:not(:matches-css(display: none)))
! Playlist recommendations under videos
www.youtube.com#?#ytd-compact-playlist-renderer:-abp-has(ytd-thumbnail-overlay-side-panel-renderer)
! Homepage info banners
www.youtube.com##.ytd-rich-section-renderer
! The overlays that are visible when you hover over a video for «Watch later» and «Add to queue»
www.youtube.com###hover-overlays
! ————————————————————————————————————————————————————————————————
! ———————————— Removes the like/dislike counters
! youtube.com##ytd-toggle-button-renderer #text
! youtube.com###sentiment
! m.youtube.com##.slim-video-metadata-actions > [data-button-id]:first-of-type .button-renderer-text
! m.youtube.com##.slim-video-metadata-actions > [data-button-id]:nth-of-type(2) .button-renderer-text
! ———————————— Removes comments on video pages
! ||youtube.com/live_chat_fragments_ajax?$xmlhttprequest
! ||youtube.com/comment_service_ajax?$domain=youtube.com|youtu.be|youtube-nocookie.com
! youtube.com###comments
! ———————————— Removes the comment section on phones
! m.youtube.com##ytm-comment-section-renderer
! ———————————— Removes the comment section on livestreams
! youtube.com##ytd-live-chat-frame
! ———————————— Removes the comment section on livestream VoDs
! youtube.com###watch-discussion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment