Skip to content

Instantly share code, notes, and snippets.

@hl2guide
Last active January 11, 2024 01:48
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 hl2guide/9a1745cd6f43bf093eb8c92c747767b1 to your computer and use it in GitHub Desktop.
Save hl2guide/9a1745cd6f43bf093eb8c92c747767b1 to your computer and use it in GitHub Desktop.
Custom adblocker filters for 2024
! Title: 2024 Custom Filters
! Description: Custom filters for 2024.
! Version: 1.0.0
! Last modified: 2024-01-11 13:00
! Expires: 1 week (update frequency)
! Homepage: none
! License: MIT
inoreader.com###aswift_0
inoreader.com###leaderboard_ad-63dafb2abf7fb
inoreader.com##.adsbygoogle
majorgeeks.com###menu1 > div.altcontent:nth-child(4)
majorgeeks.com##.bmc-btn
my.jdownloader.org###container > footer:last-child
rumble.com###main-menu > h3.main-menu-heading:nth-of-type(1)
rumble.com###video-comments > div:nth-of-type(1)
rumble.com##.channel-subheader--socials
rumble.com##.header-user.round-button.transparent-button
rumble.com##.media-page-related-media-desktop-sidebar
rumble.com##.round-button.ringed-button
rumble.com##div.main-menu-item-channel-container
twitch.tv##.top-nav__prime
! Woolworths Australia
www.woolworths.com.au###search-content shared-product-vendor-message:upward(div.product-grid-v2--tile)
www.woolworths.com.au###search-content shared-inspiration-tile:upward(div.product-grid-v2--tile)
! GitHub
github.com##aside .dashboard-changelog.mb-4
github.com##.js-notice
github.com##aside.feed-right-sidebar[aria-label="Explore"]
github.com##react-app[app-name="react-code-view"] button[data-testid="copilot-popover-button"]
github.com##.js-profile-editable-replace img.achievement-badge-sidebar:upward(div.border-top)
github.com##.js-unwatch-suggestions
! nexusmods.com - Nov 2023 Fix (code.highcharts.com is the cause)
code.highcharts.com
googletagmanager.com
secure.quantserve.com
static.hotjar.com
unpkg.com
! inoreader.com fix (long load)
js.braintreegateway.com
! majorgeeks.com fix (long load)
connect.facebook.net
cdn-images.mailchimp.com
cdnjs.buymeacoffee.com
! learn.microsoft.com fix (long load)
js.monitor.azure.com
wcpstatic.microsoft.com
! Twitch.tv
www.twitch.tv##div.Layout-sc-1xcs6mc-0.czRfnU:nth-of-type(6) > .Layout-sc-1xcs6mc-0.kBEymU > .Layout-sc-1xcs6mc-0.hatIYF > div:nth-of-type(1) > .InjectLayout-sc-1i43xsx-0.kBtJDm > .ScCoreButton-sc-ocjdkq-0.ScCoreButtonSecondary-sc-ocjdkq-2.bTXTVH.cegTsp
! PayPal
www.paypal.com##.cw-card.cw-giving
www.paypal.com##.cw-card.cw-card-top-gutter.cw-card--borderless.cw_tile_container.css-97ji8w-card_base
! Title: Hide YouTube Shorts
! Description: Hide all traces of YouTube shorts videos on YouTube
! Version: 1.8.0
! Last modified: 2023-01-08 20:02
! Expires: 2 weeks (update frequency)
! Homepage: https://github.com/gijsdev/ublock-hide-yt-shorts
! License: https://github.com/gijsdev/ublock-hide-yt-shorts/blob/master/LICENSE.md
! Hide all videos containing the phrase "#shorts"
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#shorts))
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#Shorts))
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#short))
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#Short))
! Hide all videos with the shorts indicator on the thumbnail
youtube.com##ytd-grid-video-renderer:has([overlay-style="SHORTS"])
youtube.com##ytd-rich-item-renderer:has([overlay-style="SHORTS"])
youtube.com##ytd-video-renderer:has([overlay-style="SHORTS"])
youtube.com##ytd-item-section-renderer.ytd-section-list-renderer[page-subtype="subscriptions"]:has(ytd-video-renderer:has([overlay-style="SHORTS"]))
! Hide shorts button in sidebar
youtube.com##ytd-guide-entry-renderer:has-text(Shorts)
youtube.com##ytd-mini-guide-entry-renderer:has-text(Shorts)
! Hide shorts section on homepage
youtube.com##ytd-rich-section-renderer:has(#rich-shelf-header:has-text(Shorts))
youtube.com##ytd-reel-shelf-renderer:has(.ytd-reel-shelf-renderer:has-text(Shorts))
! Hide shorts tab on channel pages
! Old style
youtube.com##tp-yt-paper-tab:has(.tp-yt-paper-tab:has-text(Shorts))
! New style (2023-10)
youtube.com##yt-tab-shape:has-text(/^Shorts$/)
! Hide shorts in video descriptions
youtube.com##ytd-reel-shelf-renderer.ytd-structured-description-content-renderer:has-text("Shorts remixing this video")
! Remove empty spaces in grid
youtube.com##ytd-rich-grid-row,#contents.ytd-rich-grid-row:style(display: contents !important)
!!! MOBILE !!!
! Hide all videos in home feed containing the phrase "#shorts"
m.youtube.com##ytm-rich-item-renderer:has(#video-title:has-text(#shorts))
m.youtube.com##ytm-rich-item-renderer:has(#video-title:has-text(#Shorts))
m.youtube.com##ytm-rich-item-renderer:has(#video-title:has-text(#short))
m.youtube.com##ytm-rich-item-renderer:has(#video-title:has-text(#Short))
! Hide all videos in subscription feed containing the phrase "#shorts"
m.youtube.com##ytm-item-section-renderer:has(#video-title:has-text(#shorts))
m.youtube.com##ytm-item-section-renderer:has(#video-title:has-text(#Shorts))
m.youtube.com##ytm-item-section-renderer:has(#video-title:has-text(#short))
m.youtube.com##ytm-item-section-renderer:has(#video-title:has-text(#Short))
! Hide shorts button in the bottom navigation bar
m.youtube.com##ytm-pivot-bar-item-renderer:has(.pivot-shorts)
! Hide all videos with the shorts indicator on the thumbnail
m.youtube.com##ytm-video-with-context-renderer:has([data-style="SHORTS"])
! Hide shorts sections
m.youtube.com##ytm-rich-section-renderer:has(ytm-reel-shelf-renderer:has(.reel-shelf-title-wrapper:has-text(Shorts)))
m.youtube.com##ytm-reel-shelf-renderer.item:has(.reel-shelf-title-wrapper:has-text(Shorts))
! Hide shorts tab on channel pages
m.youtube.com##.single-column-browse-results-tabs>a:has-text(Shorts)
! Google Search
www.google.*###rcnt > div:first-of-type:not([id]) > div:has(g-more-link,g-scrolling-carousel,g-img)
www.google.*###rso:has(> div:nth-of-type(6)) > div:has(g-more-link,g-section-with-header)
www.google.*###rso:has(> div:nth-of-type(6)) > div:has(div[role="heading"]+g-scrolling-carousel)
www.google.*###kp-wp-tab-overview > div:has(g-more-link,g-section-with-header,#media_result_group)
www.google.*###rso div.related-question-pair:upward(div[jscontroller])
www.google.*###botstuff #bres
www.google.*###rso div.g div[jscontroller][id^="eob_"]
www.google.*###rso div.MjjYud:has(div[jsname="Cpkphb"] a[href^="/search?"])
www.google.*##div.isv-r[data-rfg]
www.google.*###footcnt > #fbarcnt
www.google.*###rhs #kp-wp-tab-overview div[data-attrid$=" qa"]
www.google.*###rhs #kp-wp-tab-overview div[data-attrid$="review_summary"]
www.google.*###rhs #kp-wp-tab-overview div[data-attrid$="third_party_aggregator_ratings"]
! YouTube Music
music.youtube.com##ytmusic-mealbar-promo-renderer
music.youtube.com##h2 a[href="mixed_for_you"]:upward(ytmusic-carousel-shelf-renderer)
music.youtube.com##h2 a[href="moods_and_genres"]:upward(ytmusic-carousel-shelf-renderer):not(:matches-path(/moods_and_genres))
music.youtube.com##yt-formatted-string > .yt-formatted-string:has-text(YouTube Music):upward(.ytmusic-carousel):not(:matches-path(/moods_and_genres))
music.youtube.com##ytmusic-grid-renderer[grid-type="library"] yt-formatted-string:has-text(YouTube Music):upward(ytmusic-two-row-item-renderer)
music.youtube.com###contentContainer ytmusic-guide-entry-renderer[play-button-state] .subtitle-group:has-text(YouTube Music):upward(ytmusic-guide-entry-renderer)
music.youtube.com##.ytmusic-player-page.tab-header-container .tab-header:nth-of-type(3)
! YouTube
www.youtube.com##tp-yt-app-drawer#guide .ytd-guide-section-renderer > #header:has(a[href="/feed/you"])
www.youtube.com##a.ytd-guide-entry-renderer[href^="/feed/trending"]:upward(ytd-guide-section-renderer)
www.youtube.com##h3 > #guide-section-title:has-text(YouTube):upward(ytd-guide-section-renderer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment