Compare commits

...

13 Commits

4 changed files with 146 additions and 58 deletions

View File

@@ -5,10 +5,12 @@
A collection of [[https://github.com/gorhill/uBlock][uBlock Origin]] filters to deal with a variety of annoyances.
* Installation
To use these filters, go to uBlock Origin > Dashboard > Filter lists, scroll down
Click the ~subscribe~ link in the header.
For manual installation, go to uBlock Origin > Dashboard > Filter lists, scroll down
and expand the 'Import...' heading, then paste the URL for the desired list(s).
** All Filters
** All Filters | *[[https://subscribe.adblockplus.org/?location=https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/chase-all.txt&title=chase's%20uBlock%20Filter%20Collection][subscribe]]*
This URL can be used to add all filters, opinions and all. New lists are added
automatically.
#+begin_src txt
@@ -16,10 +18,15 @@ https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/ch
#+end_src
** Individual Lists
Use these URLs to add only the UI filters or only the content filters. [[All Filters][All Filters]]
above is a combination of these two.
*** UI Filters | *[[https://subscribe.adblockplus.org/?location=https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/chase-ui.txt&title=chase's%20UI%20Filter%20Collection][subscribe]]*
All UI filters, no content filters.
#+begin_src txt
https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/chase-ui.txt
#+end_src
*** Content Filters | *[[https://subscribe.adblockplus.org/?location=https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/chase-content.txt&title=chase's%20Content%20Filters][subscribe]]*
Filters for YouTube content that I personally find distasteful.
#+begin_src txt
https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/chase-content.txt
#+end_src
@@ -28,17 +35,25 @@ https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/ch
** Global
These filters are enabled on all websites.
#+name: global
#+begin_src txt
#+begin_src shell
! Hide sign in with Google
||accounts.google.com/gsi/*$xhr,script,3p
#+end_src
** YouTube
Filters for YouTube, separated into multiple lists to allow easy customization.
*** Shorts
Removes shorts from as many places as possible, including shorts from subscriptions.
#+name: youtube-shorts
Filters for YouTube, optional content filters.
*** UI
Removes shorts from as many places as possible, including search results and subscriptions.
Search results only show regular videos and channels.
#+name: youtube-ui
#+begin_src txt
! Set grid size to 5 always
youtube.com##ytd-rich-grid-renderer:style(--ytd-rich-grid-items-per-row: 5 !important;)
youtube.com##ytd-rich-grid-renderer:style(--ytd-rich-grid-posts-per-row: 5 !important;)
! Hide paid sponsor badge from thumbnail
youtube.com##.ytmPaidContentOverlayHost
! Hide playables on homepage
youtube.com##.ytd-rich-section-renderer.style-scope
@@ -53,6 +68,7 @@ youtube.com##ytd-item-section-renderer.ytd-section-list-renderer[page-subtype="s
! Hide shorts button in sidebar
youtube.com##ytd-guide-entry-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
youtube.com##.ytd-mini-guide-entry-renderer.style-scope.yt-simple-endpoint:has(span.title:has-text(/^Shorts$/i))
! Hide shorts section on homepage
youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
@@ -60,7 +76,7 @@ youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
! Hide shorts in recommended videos
youtube.com##ytd-reel-shelf-renderer
! Hide shorts tab on channel pages`
! 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)
@@ -68,12 +84,10 @@ youtube.com##yt-tab-shape:has-text(/^Shorts$/)
! Hide short remixes in video descriptions
youtube.com##ytd-reel-shelf-renderer.ytd-structured-description-content-renderer:has-text(/^Shorts remixing this video$/i)
#+end_src
*** Search
De-cluttering YouTube search to actually show what you searched for.
#+name: youtube-search
#+begin_src txt
! Hide shorts from search results
youtube.com##grid-shelf-view-model.ytGridShelfViewModelHostHasBottomButton.ytd-item-section-renderer.ytGridShelfViewModelHost
! Hide unrelated results from search
youtube.com##ytd-shelf-renderer:has(#title:has-text(/^\s*(People also watched|For you|Previously watched|Latest from|Channels new to you|From related searches)\s*$/))
@@ -85,19 +99,20 @@ youtube.com##ytd-radio-renderer
! Hide things that you didn't search for
youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer:has-text(People also search for)
youtube.com##ytd-shelf-renderer.ytd-item-section-renderer.style-scope
! YT Search - keep only videos (no shorts) and channels
youtube.com##ytd-search ytd-item-section-renderer>#contents>:is(:not(ytd-video-renderer,ytd-channel-renderer,yt-showing-results-for-renderer,[icon-name="promo-full-height:EMPTY_SEARCH"]),ytd-video-renderer:has([aria-label="Shorts"])),ytd-secondary-search-container-renderer
#+end_src
*** Content
Filters to hide unwanted content.
*Warning: contains opinions*
#+name: youtube-content
#+begin_src txt
#+begin_src shell
! Hide auto-dubbed videos on YouTube
youtube.com##ytd-compact-video-renderer:has([d="M11.72 11.928A4.004 4.004 0 0015 7.998c0-2.21-1.79-4-4-4s-4 1.79-4 4c0 1.96 1.42 3.59 3.28 3.93-5.51.28-8.28 3.83-8.28 8.07L20 20c0-4.24-2.77-7.79-8.28-8.07Z"])
youtube.com##yt-lockup-view-model.lockup.ytd-item-section-renderer> .yt-lockup-view-model-wiz--compact.yt-lockup-view-model-wiz--horizontal.yt-lockup-view-model-wiz:has(yt-badge-view-model.yt-badge-view-model-wiz:has(badge-shape.badge-shape-wiz.badge-shape-wiz--default:has(div.badge-shape-wiz__text:has-text(/^Auto-dubbed$/i))))
! YT Home - Hide videos based on channel names
youtube.com##ytd-browse[page-subtype="home"] ytd-rich-item-renderer:has(#avatar-link:is([title="ChannelName"], [title*="ContainsChannelName"], [title="Case Insensitive Channel Name"i]))
@@ -108,7 +123,7 @@ youtube.com##ytd-search ytd-video-renderer:has(#text.ytd-channel-name:is([title=
** Discord
UI improvements for in-browser Discord.
#+name: discord
#+begin_src txt
#+begin_src shell
! Hide top bar
discord.com##.visual-refresh:style(--custom-app-top-bar-height: 0px !important)
discord.com##.visual-refresh :is(.chat_f75fb0[data-has-border=true], .container__133bf, .container_a592e1):style(border-top: 0 !important)
@@ -140,19 +155,24 @@ discord.com##.footer__5be3e:has(> .container_a99829:only-child)
** Google
Filters for Google services.
#+name: google
#+begin_src txt
#+begin_src shell
! Upgrade Gmail
mail.google.com##.CRPU9d
! Remove AI overview in Google search
! Hide AI overview in Google search
google.com##.GcKpu
google.com###Odp5De
! Hide "AI Mode" pop-up in Google search
google.com##.azeJrb
google.com##.xg7rAe.nP0TDe.ivkdbf.mcPPZ
google.com##.ivkdbf.KUf18.kJFf0c
#+end_src
** Amazon
Clean up Prime annoyances.
#+name: amazon
#+begin_src txt
#+begin_src shell
! Amazon Prime Nags?
amazon.com##.prime-updp-accept-cta.a-span-last
amazon.com##.prime-updp-headline-primary
@@ -165,7 +185,7 @@ amazon.com##.abb-widget-box-border.a-box
** Insight Central
#+name: insight-central
#+begin_src txt
#+begin_src shell
! IC Sidebar ads
insightcentral.net##div.sidebar-block:nth-of-type(1)
insightcentral.net##div.sidebar-block:nth-of-type(5)
@@ -173,7 +193,7 @@ insightcentral.net##div.sidebar-block:nth-of-type(5)
** Onshape
#+name: onshape
#+begin_src txt
#+begin_src shell
! Onshape tour
cad.onshape.com##.zero-state-header.section-header
cad.onshape.com##.zero-state-open.zero-state-panel
@@ -181,7 +201,7 @@ cad.onshape.com##.zero-state-open.zero-state-panel
** Discover
#+name: discover
#+begin_src txt
#+begin_src shell
! Attempt to remove id protection nag from Discover
card.discover.com###main-content-rwd > div.dmp-slide.show-placement
#+end_src
@@ -189,17 +209,28 @@ card.discover.com###main-content-rwd > div.dmp-slide.show-placement
** Menards
#+name: menards
#+begin_src txt
! Remove email banner from bottom of screen
! Hide email banner from bottom of screen
menards.com##div#emailBanner.email-banner.floating.w-100
#+end_src
** Indeed
#+name: indeed
#+begin_src txt
! Remove sign in with Google
www.indeed.com##.icl-Card
! Hide sign in with Google
indeed.com##.icl-Card
#+end_src
** eBay
#+name: ebay
#+begin_src txt
! Hide pop-ups
ebay.com##[aria-modal]:has(.coupon-header)
ebay.com##body:style(position: static !important;overflow: auto !important;width: auto !important;height: auto !important;margin-top:auto !important;)
#+end_src
** AliExpress
* Contributing
Filter lists are tangled out of this document with org-babel. Please make all
@@ -231,6 +262,13 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
3. Update the version number under [[Header Generation][Header Generation]].
** Header Generation
*** Version
#+name: version
#+begin_src txt
2.6.0
#+end_src
*** Last Modified
#+name: lastmodified
#+begin_src emacs-lisp
(format-time-string "%F")
@@ -238,7 +276,7 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
#+name: header
#+begin_src txt :noweb yes
! Version: 2.0.0
! Version: <<version>>
! Last modified: <<lastmodified()>>
! Expires: 2 days (update frequency)
! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters
@@ -251,13 +289,9 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*** UI Filters
#+name: ui-filters
#+begin_src txt :noweb yes
<<header>>
<<global>>
<<youtube-shorts>>
<<youtube-search>>
<<youtube-ui>>
<<discord>>
@@ -274,11 +308,14 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
<<menards>>
<<indeed>>
<<ebay>>
#+end_src
#+begin_src txt :noweb yes :tangle chase-ui.txt
! Title: chase's UI Filters
! Title: chase's UI Filter Collection
! Description: All UI filters provided by chase's filter repo
<<header>>
<<ui-filters>>
#+end_src
@@ -287,14 +324,16 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
#+begin_src txt :noweb yes :tangle chase-content.txt
! Title: chase's Content Filters
! Description: Block undesirable YouTube content
<<header>>
<<youtube-content>>
#+end_src
*** All Filters
#+begin_src txt :noweb yes :tangle chase-all.txt
! Title: chase's uBlock Filters
! Title: chase's uBlock Filter Collection
! Description: All filters provided by chase's filter repo
<<header>>
<<ui-filters>>

View File

@@ -1,8 +1,7 @@
! Title: chase's uBlock Filters
! Title: chase's uBlock Filter Collection
! Description: All filters provided by chase's filter repo
! Version: 2.0.0
! Last modified: 2025-07-21
! Version: 2.6.0
! Last modified: 2025-08-17
! Expires: 2 days (update frequency)
! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters
! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE
@@ -12,6 +11,13 @@
! Hide sign in with Google
||accounts.google.com/gsi/*$xhr,script,3p
! Set grid size to 5 always
youtube.com##ytd-rich-grid-renderer:style(--ytd-rich-grid-items-per-row: 5 !important;)
youtube.com##ytd-rich-grid-renderer:style(--ytd-rich-grid-posts-per-row: 5 !important;)
! Hide paid sponsor badge from thumbnail
youtube.com##.ytmPaidContentOverlayHost
! Hide playables on homepage
youtube.com##.ytd-rich-section-renderer.style-scope
@@ -26,6 +32,7 @@ youtube.com##ytd-item-section-renderer.ytd-section-list-renderer[page-subtype="s
! Hide shorts button in sidebar
youtube.com##ytd-guide-entry-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
youtube.com##.ytd-mini-guide-entry-renderer.style-scope.yt-simple-endpoint:has(span.title:has-text(/^Shorts$/i))
! Hide shorts section on homepage
youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
@@ -33,7 +40,7 @@ youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
! Hide shorts in recommended videos
youtube.com##ytd-reel-shelf-renderer
! Hide shorts tab on channel pages`
! 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)
@@ -42,6 +49,9 @@ youtube.com##yt-tab-shape:has-text(/^Shorts$/)
! Hide short remixes in video descriptions
youtube.com##ytd-reel-shelf-renderer.ytd-structured-description-content-renderer:has-text(/^Shorts remixing this video$/i)
! Hide shorts from search results
youtube.com##grid-shelf-view-model.ytGridShelfViewModelHostHasBottomButton.ytd-item-section-renderer.ytGridShelfViewModelHost
! Hide unrelated results from search
youtube.com##ytd-shelf-renderer:has(#title:has-text(/^\s*(People also watched|For you|Previously watched|Latest from|Channels new to you|From related searches)\s*$/))
@@ -53,9 +63,8 @@ youtube.com##ytd-radio-renderer
! Hide things that you didn't search for
youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer:has-text(People also search for)
youtube.com##ytd-shelf-renderer.ytd-item-section-renderer.style-scope
! YT Search - keep only videos (no shorts) and channels
youtube.com##ytd-search ytd-item-section-renderer>#contents>:is(:not(ytd-video-renderer,ytd-channel-renderer,yt-showing-results-for-renderer,[icon-name="promo-full-height:EMPTY_SEARCH"]),ytd-video-renderer:has([aria-label="Shorts"])),ytd-secondary-search-container-renderer
! Hide top bar
discord.com##.visual-refresh:style(--custom-app-top-bar-height: 0px !important)
@@ -87,10 +96,15 @@ discord.com##.footer__5be3e:has(> .container_a99829:only-child)
! Upgrade Gmail
mail.google.com##.CRPU9d
! Remove AI overview in Google search
! Hide AI overview in Google search
google.com##.GcKpu
google.com###Odp5De
! Hide "AI Mode" pop-up in Google search
google.com##.azeJrb
google.com##.xg7rAe.nP0TDe.ivkdbf.mcPPZ
google.com##.ivkdbf.KUf18.kJFf0c
! Amazon Prime Nags?
amazon.com##.prime-updp-accept-cta.a-span-last
amazon.com##.prime-updp-headline-primary
@@ -111,15 +125,22 @@ cad.onshape.com##.zero-state-open.zero-state-panel
! Attempt to remove id protection nag from Discover
card.discover.com###main-content-rwd > div.dmp-slide.show-placement
! Remove email banner from bottom of screen
! Hide email banner from bottom of screen
menards.com##div#emailBanner.email-banner.floating.w-100
! Remove sign in with Google
www.indeed.com##.icl-Card
! Hide sign in with Google
indeed.com##.icl-Card
! Hide pop-ups
ebay.com##[aria-modal]:has(.coupon-header)
ebay.com##body:style(position: static !important;overflow: auto !important;width: auto !important;height: auto !important;margin-top:auto !important;)
! Hide auto-dubbed videos on YouTube
youtube.com##ytd-compact-video-renderer:has([d="M11.72 11.928A4.004 4.004 0 0015 7.998c0-2.21-1.79-4-4-4s-4 1.79-4 4c0 1.96 1.42 3.59 3.28 3.93-5.51.28-8.28 3.83-8.28 8.07L20 20c0-4.24-2.77-7.79-8.28-8.07Z"])
youtube.com##yt-lockup-view-model.lockup.ytd-item-section-renderer> .yt-lockup-view-model-wiz--compact.yt-lockup-view-model-wiz--horizontal.yt-lockup-view-model-wiz:has(yt-badge-view-model.yt-badge-view-model-wiz:has(badge-shape.badge-shape-wiz.badge-shape-wiz--default:has(div.badge-shape-wiz__text:has-text(/^Auto-dubbed$/i))))
! YT Home - Hide videos based on channel names
youtube.com##ytd-browse[page-subtype="home"] ytd-rich-item-renderer:has(#avatar-link:is([title="ChannelName"], [title*="ContainsChannelName"], [title="Case Insensitive Channel Name"i]))

View File

@@ -1,9 +1,18 @@
! Title: chase's Content Filters
! Description: Block undesirable YouTube content
! Version: 2.6.0
! Last modified: 2025-08-17
! Expires: 2 days (update frequency)
! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters
! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE
!!! This file is generated by README.org and should not be edited directly !!!
! Hide auto-dubbed videos on YouTube
youtube.com##ytd-compact-video-renderer:has([d="M11.72 11.928A4.004 4.004 0 0015 7.998c0-2.21-1.79-4-4-4s-4 1.79-4 4c0 1.96 1.42 3.59 3.28 3.93-5.51.28-8.28 3.83-8.28 8.07L20 20c0-4.24-2.77-7.79-8.28-8.07Z"])
youtube.com##yt-lockup-view-model.lockup.ytd-item-section-renderer> .yt-lockup-view-model-wiz--compact.yt-lockup-view-model-wiz--horizontal.yt-lockup-view-model-wiz:has(yt-badge-view-model.yt-badge-view-model-wiz:has(badge-shape.badge-shape-wiz.badge-shape-wiz--default:has(div.badge-shape-wiz__text:has-text(/^Auto-dubbed$/i))))
! YT Home - Hide videos based on channel names
youtube.com##ytd-browse[page-subtype="home"] ytd-rich-item-renderer:has(#avatar-link:is([title="ChannelName"], [title*="ContainsChannelName"], [title="Case Insensitive Channel Name"i]))

View File

@@ -1,8 +1,7 @@
! Title: chase's UI Filters
! Title: chase's UI Filter Collection
! Description: All UI filters provided by chase's filter repo
! Version: 2.0.0
! Last modified: 2025-07-21
! Version: 2.6.0
! Last modified: 2025-08-17
! Expires: 2 days (update frequency)
! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters
! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE
@@ -12,6 +11,13 @@
! Hide sign in with Google
||accounts.google.com/gsi/*$xhr,script,3p
! Set grid size to 5 always
youtube.com##ytd-rich-grid-renderer:style(--ytd-rich-grid-items-per-row: 5 !important;)
youtube.com##ytd-rich-grid-renderer:style(--ytd-rich-grid-posts-per-row: 5 !important;)
! Hide paid sponsor badge from thumbnail
youtube.com##.ytmPaidContentOverlayHost
! Hide playables on homepage
youtube.com##.ytd-rich-section-renderer.style-scope
@@ -26,6 +32,7 @@ youtube.com##ytd-item-section-renderer.ytd-section-list-renderer[page-subtype="s
! Hide shorts button in sidebar
youtube.com##ytd-guide-entry-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
youtube.com##.ytd-mini-guide-entry-renderer.style-scope.yt-simple-endpoint:has(span.title:has-text(/^Shorts$/i))
! Hide shorts section on homepage
youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
@@ -33,7 +40,7 @@ youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
! Hide shorts in recommended videos
youtube.com##ytd-reel-shelf-renderer
! Hide shorts tab on channel pages`
! 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)
@@ -42,6 +49,9 @@ youtube.com##yt-tab-shape:has-text(/^Shorts$/)
! Hide short remixes in video descriptions
youtube.com##ytd-reel-shelf-renderer.ytd-structured-description-content-renderer:has-text(/^Shorts remixing this video$/i)
! Hide shorts from search results
youtube.com##grid-shelf-view-model.ytGridShelfViewModelHostHasBottomButton.ytd-item-section-renderer.ytGridShelfViewModelHost
! Hide unrelated results from search
youtube.com##ytd-shelf-renderer:has(#title:has-text(/^\s*(People also watched|For you|Previously watched|Latest from|Channels new to you|From related searches)\s*$/))
@@ -53,9 +63,8 @@ youtube.com##ytd-radio-renderer
! Hide things that you didn't search for
youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer:has-text(People also search for)
youtube.com##ytd-shelf-renderer.ytd-item-section-renderer.style-scope
! YT Search - keep only videos (no shorts) and channels
youtube.com##ytd-search ytd-item-section-renderer>#contents>:is(:not(ytd-video-renderer,ytd-channel-renderer,yt-showing-results-for-renderer,[icon-name="promo-full-height:EMPTY_SEARCH"]),ytd-video-renderer:has([aria-label="Shorts"])),ytd-secondary-search-container-renderer
! Hide top bar
discord.com##.visual-refresh:style(--custom-app-top-bar-height: 0px !important)
@@ -87,10 +96,15 @@ discord.com##.footer__5be3e:has(> .container_a99829:only-child)
! Upgrade Gmail
mail.google.com##.CRPU9d
! Remove AI overview in Google search
! Hide AI overview in Google search
google.com##.GcKpu
google.com###Odp5De
! Hide "AI Mode" pop-up in Google search
google.com##.azeJrb
google.com##.xg7rAe.nP0TDe.ivkdbf.mcPPZ
google.com##.ivkdbf.KUf18.kJFf0c
! Amazon Prime Nags?
amazon.com##.prime-updp-accept-cta.a-span-last
amazon.com##.prime-updp-headline-primary
@@ -111,8 +125,13 @@ cad.onshape.com##.zero-state-open.zero-state-panel
! Attempt to remove id protection nag from Discover
card.discover.com###main-content-rwd > div.dmp-slide.show-placement
! Remove email banner from bottom of screen
! Hide email banner from bottom of screen
menards.com##div#emailBanner.email-banner.floating.w-100
! Remove sign in with Google
www.indeed.com##.icl-Card
! Hide sign in with Google
indeed.com##.icl-Card
! Hide pop-ups
ebay.com##[aria-modal]:has(.coupon-header)
ebay.com##body:style(position: static !important;overflow: auto !important;width: auto !important;height: auto !important;margin-top:auto !important;)