Compare commits

...

7 Commits

Author SHA1 Message Date
e4813bebec Update 2.8.1: Formatting changes 2025-08-18 18:15:21 -04:00
96a6bca9cd Update 2.8.0: Add filter for chat on JLCPCB 2025-08-18 18:11:51 -04:00
8403b187f6 Documentation updates 2025-08-18 02:01:39 -04:00
3af111090f Revert shell source blocks to txt 2025-08-17 20:01:10 -04:00
c36277820c Update dev 2025-08-17 19:51:47 -04:00
791d73a484 Update dev 2025-08-17 19:46:24 -04:00
3d3215a453 Update dev 2025-08-17 19:44:31 -04:00
4 changed files with 94 additions and 62 deletions

View File

@@ -3,6 +3,9 @@
#+AUTHOR: chase
#+OPTIONS: toc:nil
A collection of [[https://github.com/gorhill/uBlock][uBlock Origin]] filters to deal with a variety of annoyances.
Sourced from many places around the web and a few of my own manual element
blocking. This repo exists to make it easier for me to sync my extra filters
between PCs and share them with others.
* Installation
Click the ~subscribe~ link in the header.
@@ -59,6 +62,11 @@ youtube.com##.ytd-rich-section-renderer.style-scope
! Hide shorts category on homepage and search pages
youtube.com##yt-chip-cloud-chip-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
! 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 all videos with the shorts indicator on the thumbnail
youtube.com##ytd-grid-video-renderer:has([overlay-style="SHORTS"])
@@ -66,23 +74,16 @@ 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(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))
! 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)
youtube.com##yt-tab-shape:has-text(/^Shorts$/)
! Hide short remixes in video descriptions
! Hide shorts 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
@@ -90,17 +91,14 @@ youtube.com##grid-shelf-view-model.ytGridShelfViewModelHostHasBottomButton.ytd-i
! 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*$/))
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
! Hide list of recent uploads from a channel from search
youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/)
! Hide Mix results from search
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
#+end_src
*** Content
@@ -108,15 +106,15 @@ Filters to hide unwanted content.
*Warning: contains opinions*
#+name: youtube-content
#+begin_src txt
! Hide auto-dubbed videos on YouTube
! 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))))
! YT Home - Hide videos based on channel names
! 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]))
! YT Search - hide results based on channel names
! 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
@@ -179,6 +177,7 @@ amazon.com##.prime-updp-headline-primary
amazon.com##.prime-updp-mobile-renewal-text-offer
amazon.com##.prime-updp-mobile-table
amazon.com##.prime-legal-text-primary
! Prime box on product page
amazon.com##.abb-widget-box-border.a-box
#+end_src
@@ -229,7 +228,22 @@ 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
** AliExpress US
#+name: aliexpress
#+begin_src txt
! Hide annoying GIF on home page
aliexpress.us##.drogue-poplayer-modal
! Hide social buttons on search results page
aliexpress.us##.go_gq
#+end_src
** JLCPCB
#+name: jlcpcb
#+begin_src txt
! Hide chat
cart.jlcpcb.com##.chat-icon-popover.el-popper.el-popover
cart.jlcpcb.com##.el-popover__reference.wm-chat
#+end_src
* Contributing
@@ -257,15 +271,19 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*This section is not rendered when viewing on Gitea.*
** Adding Lists
1. Create a new entry under the [[Filters][Filters]] header with the name and contents of the list.
2. Add the new list to the [[UI Filters][UI Filters]] entry.
3. Update the version number under [[Header Generation][Header Generation]].
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.
** Header Generation
*** Version
Here's how the version bumps work:
- *Major version*: breaking change
- *Minor version*: any change to the filters
- *Patch version*: documentation/other changes
#+name: version
#+begin_src txt
2.6.0
2.8.1
#+end_src
*** Last Modified
@@ -310,6 +328,10 @@ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
<<indeed>>
<<ebay>>
<<aliexpress>>
<<jlcpcb>>
#+end_src
#+begin_src txt :noweb yes :tangle chase-ui.txt

View File

@@ -1,7 +1,7 @@
! Title: chase's uBlock Filter Collection
! Description: All filters provided by chase's filter repo
! Version: 2.6.0
! Last modified: 2025-08-16
! Version: 2.8.1
! Last modified: 2025-08-18
! 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
@@ -23,6 +23,11 @@ youtube.com##.ytd-rich-section-renderer.style-scope
! Hide shorts category on homepage and search pages
youtube.com##yt-chip-cloud-chip-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
! 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 all videos with the shorts indicator on the thumbnail
youtube.com##ytd-grid-video-renderer:has([overlay-style="SHORTS"])
@@ -30,23 +35,16 @@ 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(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))
! 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)
youtube.com##yt-tab-shape:has-text(/^Shorts$/)
! Hide short remixes in video descriptions
! Hide shorts 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
@@ -54,6 +52,8 @@ youtube.com##grid-shelf-view-model.ytGridShelfViewModelHostHasBottomButton.ytd-i
! 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*$/))
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
! Hide list of recent uploads from a channel from search
youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/)
@@ -61,11 +61,6 @@ youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/)
! Hide Mix results from search
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
! 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)
@@ -111,6 +106,7 @@ amazon.com##.prime-updp-headline-primary
amazon.com##.prime-updp-mobile-renewal-text-offer
amazon.com##.prime-updp-mobile-table
amazon.com##.prime-legal-text-primary
! Prime box on product page
amazon.com##.abb-widget-box-border.a-box
@@ -136,13 +132,22 @@ 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
! Hide annoying GIF on home page
aliexpress.us##.drogue-poplayer-modal
! Hide social buttons on search results page
aliexpress.us##.go_gq
! Hide chat
cart.jlcpcb.com##.chat-icon-popover.el-popper.el-popover
cart.jlcpcb.com##.el-popover__reference.wm-chat
! 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))))
! YT Home - Hide videos based on channel names
! 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]))
! YT Search - hide results based on channel names
! 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"]))

View File

@@ -1,20 +1,20 @@
! Title: chase's Content Filters
! Description: Block undesirable YouTube content
! Version: 2.6.0
! Last modified: 2025-08-16
! Version: 2.8.1
! Last modified: 2025-08-18
! 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
! 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))))
! YT Home - Hide videos based on channel names
! 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]))
! YT Search - hide results based on channel names
! 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"]))

View File

@@ -1,7 +1,7 @@
! Title: chase's UI Filter Collection
! Description: All UI filters provided by chase's filter repo
! Version: 2.6.0
! Last modified: 2025-08-16
! Version: 2.8.1
! Last modified: 2025-08-18
! 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
@@ -23,6 +23,11 @@ youtube.com##.ytd-rich-section-renderer.style-scope
! Hide shorts category on homepage and search pages
youtube.com##yt-chip-cloud-chip-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
! 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 all videos with the shorts indicator on the thumbnail
youtube.com##ytd-grid-video-renderer:has([overlay-style="SHORTS"])
@@ -30,23 +35,16 @@ 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(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))
! 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)
youtube.com##yt-tab-shape:has-text(/^Shorts$/)
! Hide short remixes in video descriptions
! Hide shorts 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
@@ -54,6 +52,8 @@ youtube.com##grid-shelf-view-model.ytGridShelfViewModelHostHasBottomButton.ytd-i
! 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*$/))
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
! Hide list of recent uploads from a channel from search
youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/)
@@ -61,11 +61,6 @@ youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/)
! Hide Mix results from search
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
! 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)
@@ -111,6 +106,7 @@ amazon.com##.prime-updp-headline-primary
amazon.com##.prime-updp-mobile-renewal-text-offer
amazon.com##.prime-updp-mobile-table
amazon.com##.prime-legal-text-primary
! Prime box on product page
amazon.com##.abb-widget-box-border.a-box
@@ -135,3 +131,12 @@ indeed.com##.icl-Card
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 annoying GIF on home page
aliexpress.us##.drogue-poplayer-modal
! Hide social buttons on search results page
aliexpress.us##.go_gq
! Hide chat
cart.jlcpcb.com##.chat-icon-popover.el-popper.el-popover
cart.jlcpcb.com##.el-popover__reference.wm-chat