Skip to content

Instantly share code, notes, and snippets.

@philippelatulippe
Created August 20, 2023 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philippelatulippe/bafa5082ba439001f366ed8834db2e14 to your computer and use it in GitHub Desktop.
Save philippelatulippe/bafa5082ba439001f366ed8834db2e14 to your computer and use it in GitHub Desktop.
My uBlock filters
! These filters should be stable even when classes and ids are obfuscated and changing
! youtube.com
! Hides junk in search results. Uses string matching, if you use a different language, just update the /text in slashes/ below
youtube.com##ytd-shelf-renderer:has-text(/Previously watched/)
youtube.com##ytd-shelf-renderer:has-text(/People also watched/)
youtube.com###contents > ytd-shelf-renderer:has-text(/For you/)
youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/Watch again/i))
youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer.style-scope:has(span:has-text(/Searches related to/i))
youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/Learn while you\'re at home/i))
youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer.style-scope
youtube.com###secondary > .ytd-two-column-search-results-renderer
youtube.com###contents > .ytd-secondary-search-container-renderer.style-scope
! https://en.wikipedia.org
! Yes, I know about copyright
en.wikipedia.org##.editpage-head-copywarn
! https://www.tumblr.com
! Hide GDPR screen
www.tumblr.com###glass-container
www.tumblr.com##body:style(overflow: auto !important)
! but still load GDPR code so that the page doesn't break (maybe we can replace this with a special script)
@@||static.tumblr.com/gdpr/cmp/gvl/*$xhr,domain=www.tumblr.com
! Block and hide tumblr live. ^= matches the begining of the id, :upward(4) hides not only the element, but also 4 of its ancestors
www.tumblr.com##div[id^="liveMarqueetimelineObject"]:upward(4)
||tumblr-live.com
||www.tumblr.com/api/v2/tmglive/
! www.theguardian.com
www.theguardian.com##.remote-banner.site-message--banner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment