Skip to content

Instantly share code, notes, and snippets.

@DerEnderKeks
Last active October 3, 2023 17:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerEnderKeks/e5f1f3cb208e1b82ccbebf7bcd3046c5 to your computer and use it in GitHub Desktop.
Save DerEnderKeks/e5f1f3cb208e1b82ccbebf7bcd3046c5 to your computer and use it in GitHub Desktop.
My personal uBlock Origin filters
! www.der-postillon.com - hide steady floating button
www.der-postillon.com###steady-floating-button-wrapper
! www.youtube.com - hide Premiere garbage (hides any premiering/announced videos until they are an actual video) and shorts [https://www.reddit.com/r/uBlockOrigin/comments/143mdqv/code_to_block_youtube_shorts_june_2023/]
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::span[contains(text(),"UPCOMING")]])
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::span[contains(text(),"PREMIERE")]])
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::span[contains(@aria-label,"Shorts")]])
youtube.com##:matches-path(/feed/subscriptions) ytd-rich-grid-row, #contents.ytd-rich-grid-row:style(display:contents !important;)
youtube.com##:matches-path(/feed/subscriptions) ytd-rich-section-renderer:has-text(Shorts)
! number of videos per row
youtube.com##:matches-path(/feed/subscriptions) ytd-rich-grid-renderer:style(--ytd-rich-grid-items-per-row: 8 !important;)
! www.google.* - hide "People also search for" block which alway appears right when you want to click the second search result
www.google.*##[style="display: block; opacity: 1;"]
www.google.*##[data-hveid][style]:not([data-kt]):matches-css(height: /\d+px/):style(height: auto !important;)
! www.mindfactory.de - side ad banners
www.mindfactory.de##.bgl-r
www.mindfactory.de##.bgl-l
www.mindfactory.de##body:style(background-image: none !important;)
! 2022-07-09 https://ark.fandom.com
ark.fandom.com##.global-navigation
! 2023-08-12 https://developer.mozilla.org
developer.mozilla.org##.visible.top-banner
developer.mozilla.org##.toc-container > .side.place
! 2023-08-22 https://praxistipps.focus.de
praxistipps.focus.de###video-widget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment