forked from chase/ublock-filters
Update 1.1.0: add "All Filters" list, improve formatting and documentation
This commit is contained in:
99
README.org
99
README.org
@@ -5,8 +5,17 @@ A collection of [[https://github.com/gorhill/uBlock][uBlock Origin]] filters to
|
||||
|
||||
* Installation
|
||||
To use these filters, go to uBlock Origin > Dashboard > Filter lists, scroll down
|
||||
and expand the 'Import...' heading, and then paste the URL(s) for each list.
|
||||
and expand the 'Import...' heading, then paste the URL for the desired list(s).
|
||||
|
||||
** All Filters
|
||||
This URL can be used to add all filter lists, opinions and all. New lists are
|
||||
added automatically.
|
||||
#+begin_src txt
|
||||
https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/chase-all.txt
|
||||
#+end_src
|
||||
|
||||
** Individual Filters
|
||||
Each filter list can be added individually using the following URLs.
|
||||
#+begin_src txt
|
||||
https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/chase-global.txt
|
||||
https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/chase-youtube-shorts.txt
|
||||
@@ -23,6 +32,7 @@ https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/ch
|
||||
|
||||
* Filter Lists
|
||||
** Global
|
||||
These filters are enabled on all websites.
|
||||
#+name: global
|
||||
#+begin_src txt
|
||||
! Hide sign in with Google
|
||||
@@ -30,73 +40,79 @@ https://git.traphouse.cathoderaytube.net/chase/ublock-filters/raw/branch/main/ch
|
||||
#+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
|
||||
#+begin_src txt
|
||||
! Hide playables on homepage
|
||||
www.youtube.com##.ytd-rich-section-renderer.style-scope
|
||||
youtube.com##.ytd-rich-section-renderer.style-scope
|
||||
|
||||
! Hide shorts category on homepage and search pages
|
||||
www.youtube.com##yt-chip-cloud-chip-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
|
||||
youtube.com##yt-chip-cloud-chip-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
|
||||
|
||||
! Hide all videos with the shorts indicator on the thumbnail
|
||||
www.youtube.com##ytd-grid-video-renderer:has([overlay-style="SHORTS"])
|
||||
www.youtube.com##ytd-rich-item-renderer:has([overlay-style="SHORTS"])
|
||||
www.youtube.com##ytd-video-renderer:has([overlay-style="SHORTS"])
|
||||
www.youtube.com##ytd-item-section-renderer.ytd-section-list-renderer[page-subtype="subscriptions"]:has(ytd-video-renderer:has([overlay-style="SHORTS"]))
|
||||
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
|
||||
www.youtube.com##ytd-guide-entry-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
|
||||
youtube.com##ytd-guide-entry-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
|
||||
|
||||
! Hide shorts section on homepage
|
||||
www.youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
|
||||
youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
|
||||
|
||||
! Hide shorts in recommended videos
|
||||
www.youtube.com##ytd-reel-shelf-renderer
|
||||
youtube.com##ytd-reel-shelf-renderer
|
||||
|
||||
! Hide shorts tab on channel pages`
|
||||
! Old style
|
||||
www.youtube.com##tp-yt-paper-tab:has(.tp-yt-paper-tab:has-text(Shorts))
|
||||
youtube.com##tp-yt-paper-tab:has(.tp-yt-paper-tab:has-text(Shorts))
|
||||
! New style (2023-10)
|
||||
www.youtube.com##yt-tab-shape:has-text(/^Shorts$/)
|
||||
youtube.com##yt-tab-shape:has-text(/^Shorts$/)
|
||||
|
||||
! Hide short remixes in video descriptions
|
||||
www.youtube.com##ytd-reel-shelf-renderer.ytd-structured-description-content-renderer:has-text(/^Shorts remixing this video$/i)
|
||||
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 unrelated results from search
|
||||
www.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-shelf-renderer:has(#title:has-text(/^\s*(People also watched|For you|Previously watched|Latest from|Channels new to you|From related searches)\s*$/))
|
||||
|
||||
! Hide list of recent uploads from a channel from search
|
||||
www.youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/)
|
||||
youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/)
|
||||
|
||||
! Hide Mix results from search
|
||||
www.youtube.com##ytd-radio-renderer
|
||||
youtube.com##ytd-radio-renderer
|
||||
|
||||
! Hide things that you didn't search for
|
||||
www.youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer:has-text(People also search for)
|
||||
youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer:has-text(People also search for)
|
||||
|
||||
! YT Search - keep only videos (no shorts)
|
||||
youtube.com##ytd-search ytd-item-section-renderer>#contents>:is(:not(ytd-video-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
|
||||
! 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
|
||||
! Hide auto-dubbed videos on YouTube
|
||||
www.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##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"])
|
||||
|
||||
! 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]))
|
||||
|
||||
! YT Search - hide results based on channel names
|
||||
www.youtube.com##ytd-search ytd-video-renderer:has(#text.ytd-channel-name:is([title="Exact channel name 1"], [title="Exact channel name 2"]))
|
||||
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
|
||||
! Hide top bar
|
||||
@@ -128,6 +144,7 @@ discord.com##.footer__5be3e:has(> .container_a99829:only-child)
|
||||
#+end_src
|
||||
|
||||
** Google
|
||||
Filters for Google services.
|
||||
#+name: google
|
||||
#+begin_src txt
|
||||
! Upgrade Gmail
|
||||
@@ -139,6 +156,7 @@ google.com###Odp5De
|
||||
#+end_src
|
||||
|
||||
** Amazon
|
||||
Clean up Prime annoyances.
|
||||
#+name: amazon
|
||||
#+begin_src txt
|
||||
! Amazon Prime Nags?
|
||||
@@ -153,8 +171,8 @@ amazon.com##.prime-legal-text-primary
|
||||
#+name: insight-central
|
||||
#+begin_src txt
|
||||
! IC Sidebar ads
|
||||
www.insightcentral.net##div.sidebar-block:nth-of-type(1)
|
||||
www.insightcentral.net##div.sidebar-block:nth-of-type(5)
|
||||
insightcentral.net##div.sidebar-block:nth-of-type(1)
|
||||
insightcentral.net##div.sidebar-block:nth-of-type(5)
|
||||
#+end_src
|
||||
|
||||
** Onshape
|
||||
@@ -174,8 +192,8 @@ card.discover.com###main-content-rwd > div.dmp-slide.show-placement
|
||||
|
||||
|
||||
* Contributing
|
||||
Filter lists are tangled out of this document with org-babel. Please submit changes
|
||||
to =README.org= rather than the individual filter list files.
|
||||
Filter lists are tangled out of this document with org-babel. Please submit
|
||||
changes to =README.org= rather than the individual filter list files.
|
||||
|
||||
|
||||
* License
|
||||
@@ -207,7 +225,7 @@ date -u -I
|
||||
|
||||
#+name: header
|
||||
#+begin_src shell :noweb yes
|
||||
! Version: 1.0.0
|
||||
! Version: 1.1.0
|
||||
! Last modified: <<lastmodified()>>
|
||||
! Expires: 2 weeks (update frequency)
|
||||
! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters
|
||||
@@ -215,9 +233,36 @@ date -u -I
|
||||
#+end_src
|
||||
|
||||
** File Generation
|
||||
*** All Filters
|
||||
#+begin_src txt :noweb yes :tangle chase-all.txt
|
||||
! Title: All Filters
|
||||
! Description: All filters provided by chase's filter repo
|
||||
<<header>>
|
||||
|
||||
<<global>>
|
||||
|
||||
<<youtube-shorts>>
|
||||
|
||||
<<youtube-search>>
|
||||
|
||||
<<youtube-content>>
|
||||
|
||||
<<discord>>
|
||||
|
||||
<<google>>
|
||||
|
||||
<<amazon>>
|
||||
|
||||
<<insight-central>>
|
||||
|
||||
<<onshape>>
|
||||
|
||||
<<discover>>
|
||||
#+end_src
|
||||
|
||||
*** Global
|
||||
#+begin_src txt :noweb yes :tangle chase-global.txt
|
||||
! Title: Global filters
|
||||
! Title: Global Filters
|
||||
! Description: Filters allowed on all websites
|
||||
<<header>>
|
||||
|
||||
|
Reference in New Issue
Block a user