Update 2.10.0: Remove unused YouTube content filters, block auto-dubbed videos. Refactor file generation. Add symlinks for back-compat with old lists. Documentation updates.

This commit is contained in:
2025-09-03 15:52:47 -04:00
parent a3c1a9df24
commit 81bb1a624c
4 changed files with 54 additions and 272 deletions

View File

@@ -13,43 +13,30 @@ 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 | *[[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.
** *[[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]]*
Use the link above or import this URL in the ~Filter lists~ settings.
#+begin_src txt
https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/chase-all.txt
#+end_src
** Individual Lists
*** 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
* Filters
:PROPERTIES:
:header-args: :noweb-ref allfilters :noweb-sep "\n\n"
:END:
** Global
These filters are enabled on all websites.
#+name: global
#+begin_src txt
! [ Global Filters ]
! Hide sign in with Google
||accounts.google.com/gsi/*$xhr,script,3p
#+end_src
** YouTube
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
Auto-dubbed videos are removed. Search results only show regular videos and channels.
#+begin_src txt
! [ YouTube ]
! 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;)
@@ -99,29 +86,17 @@ youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/)
! Hide Mix results from search
youtube.com##ytd-radio-renderer
#+end_src
*** Content
Filters to hide unwanted content.
*Warning: contains opinions*
#+name: youtube-content
#+begin_src txt
! Hide auto-dubbed videos
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))))
! Hide videos based on channel names on home page
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]))
! Hide videos based on channel names in search results
youtube.com##ytd-search ytd-video-renderer:has(#text.ytd-channel-name:is([title="Exact channel name 1"], [title="Exact channel name 2"]))
#+end_src
** Discord
UI improvements for in-browser Discord.
#+name: discord
#+begin_src txt
! [ Discord ]
! 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)
@@ -153,8 +128,8 @@ discord.com##.footer__5be3e:has(> .container_a99829:only-child)
** Google
Filters for Google services.
#+name: google
#+begin_src txt
! [ Google ]
! Upgrade Gmail
mail.google.com##.CRPU9d
@@ -170,8 +145,8 @@ google.com##.ivkdbf.KUf18.kJFf0c
** Amazon
Clean up Prime annoyances.
#+name: amazon
#+begin_src txt
! [ Amazon ]
! Amazon Prime Nags?
amazon.com##.prime-updp-accept-cta.a-span-last
amazon.com##.prime-updp-headline-primary
@@ -184,45 +159,45 @@ amazon.com##.abb-widget-box-border.a-box
#+end_src
** Insight Central
#+name: insight-central
#+begin_src txt
! [ Insight Central ]
! IC Sidebar ads
insightcentral.net##div.sidebar-block:nth-of-type(1)
insightcentral.net##div.sidebar-block:nth-of-type(5)
#+end_src
** Onshape
#+name: onshape
#+begin_src txt
! [ Onshape ]
! Onshape tour
cad.onshape.com##.zero-state-header.section-header
cad.onshape.com##.zero-state-open.zero-state-panel
#+end_src
** Discover
#+name: discover
#+begin_src txt
! [ Discover ]
! Attempt to remove id protection nag from Discover
card.discover.com###main-content-rwd > div.dmp-slide.show-placement
#+end_src
** Menards
#+name: menards
#+begin_src txt
! [ Menards ]
! Hide email banner from bottom of screen
menards.com##div#emailBanner.email-banner.floating.w-100
#+end_src
** Indeed
#+name: indeed
#+begin_src txt
! [ Indeed ]
! Hide sign in with Google
indeed.com##.icl-Card
#+end_src
** eBay
#+name: ebay
#+begin_src txt
! [ eBay ]
! Hide pop-ups
ebay.com##[aria-modal]:has(.coupon-header)
@@ -230,8 +205,8 @@ ebay.com##body:style(position: static !important;overflow: auto !important;width
#+end_src
** AliExpress US
#+name: aliexpress
#+begin_src txt
! [ AliExpress US ]
! Hide annoying GIF on home page
aliexpress.us##.drogue-poplayer-modal
! Hide social buttons on search results page
@@ -239,13 +214,20 @@ aliexpress.us##.go_gq
#+end_src
** JLCPCB
#+name: jlcpcb
#+begin_src txt
! [ JLCPCB ]
! Hide chat
cart.jlcpcb.com##.chat-icon-popover.el-popper.el-popover
cart.jlcpcb.com##.el-popover__reference.wm-chat
#+end_src
** Wikipedia
#+begin_src txt
! [ Wikipedia ]
! Hide fundraising banner at top of article
en.wikipedia.org##.cn-fundraising
#+end_src
* Contributing
Filter lists are tangled out of this document with org-babel. Please make all
@@ -274,7 +256,7 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
** Adding Lists
1. Update the version number under [[Header Generation][Header Generation]].
2. Create a new entry under the [[Filters][Filters]] header with the name and contents of the list.
3. Add the new list to the [[UI Filters][UI Filters]] entry.
3. Save and tangle the new =chase-all.txt= file.
** Header Generation
*** Version
@@ -284,7 +266,7 @@ Here's how the version bumps work:
- *Patch version*: documentation/other changes
#+name: version
#+begin_src txt
2.9.0
2.10.0
#+end_src
*** Last Modified
@@ -305,60 +287,10 @@ Here's how the version bumps work:
#+end_src
** File Generation
*** UI Filters
#+name: ui-filters
#+begin_src txt :noweb yes
<<global>>
<<youtube-ui>>
<<discord>>
<<google>>
<<amazon>>
<<insight-central>>
<<onshape>>
<<discover>>
<<menards>>
<<indeed>>
<<ebay>>
<<aliexpress>>
<<jlcpcb>>
#+end_src
#+begin_src txt :noweb yes :tangle chase-ui.txt
! Title: chase's UI Filter Collection
! Description: All UI filters provided by chase's filter repo
<<header>>
<<ui-filters>>
#+end_src
*** Content Filters
#+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 Filter Collection
! Description: All filters provided by chase's filter repo
<<header>>
<<ui-filters>>
<<youtube-content>>
<<allfilters>>
#+end_src