From 4adfe45bfc3176666341543bc50be2c3503fa2c3 Mon Sep 17 00:00:00 2001 From: chase Date: Sun, 29 Jun 2025 19:22:44 -0400 Subject: [PATCH] Add filters --- README.org | 205 ++++++++++++++++++++++++++++++++++++++ chase-amazon.txt | 14 +++ chase-discord.txt | 34 +++++++ chase-discover.txt | 10 ++ chase-global.txt | 10 ++ chase-gmail.txt | 10 ++ chase-insight-central.txt | 11 ++ chase-onshape.txt | 11 ++ chase-youtube-content.txt | 16 +++ chase-youtube-search.txt | 22 ++++ chase-youtube-shorts.txt | 37 +++++++ 11 files changed, 380 insertions(+) create mode 100644 README.org create mode 100644 chase-amazon.txt create mode 100644 chase-discord.txt create mode 100644 chase-discover.txt create mode 100644 chase-global.txt create mode 100644 chase-gmail.txt create mode 100644 chase-insight-central.txt create mode 100644 chase-onshape.txt create mode 100644 chase-youtube-content.txt create mode 100644 chase-youtube-search.txt create mode 100644 chase-youtube-shorts.txt diff --git a/README.org b/README.org new file mode 100644 index 0000000..02b2369 --- /dev/null +++ b/README.org @@ -0,0 +1,205 @@ +#+TITLE: ublock-filters +#+AUTHOR: chase +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 +and expand the 'Import...' heading, and then paste the URL(s) for each list. + + +* Filter Lists +** Global +#+begin_src org :noweb yes :tangle chase-global.txt +! Title: Global Filters +! Description: Filters allowed on all websites +<
> + +! Hide sign in with Google +||accounts.google.com/gsi/*$xhr,script,3p +#+end_src + +** YouTube +*** Shorts +#+begin_src org :noweb yes :tangle chase-youtube-shorts.txt +! Title: YouTube Shorts Filters +! Description: Filters to clean up Shorts and Playables on YouTube +<
> + +! Hide playables on homepage +www.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)) + +! 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"])) + +! Hide shorts button in sidebar +www.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)) + +! Hide shorts in recommended videos +www.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)) +! New style (2023-10) +www.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) +#+end_src + +*** Search +#+begin_src org :noweb yes :tangle chase-youtube-search.txt +! Title: YouTube Search Filters +! Description: Filters to clean up Shorts and Playables on YouTube +<
> + +! 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*$/)) + +! Hide list of recent uploads from a channel from search +www.youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/) + +! Hide Mix results from search +www.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) + +! 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 +#+end_src + +*** Content +#+begin_src org :noweb yes :tangle chase-youtube-content.txt +! Title: YouTube Content Filters +! Description: *Opinionated* filters to clean up unwanted content from YouTube +<
> + +! 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"]) + +! 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"])) +#+end_src + +** Discord +#+begin_src org :noweb yes :tangle chase-discord.txt +! Title: Discord Filters +! Description: Filters to clean up Discord UI +<
> + +! 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) +discord.com##.visual-refresh :is(.sidebarListRounded_c48ade, .container__01ae2, .callContainer_cb9592):style(border-top: 0 !important; border-radius: 0 !important) +discord.com##.visual-refresh .scroller_ef3116:style(padding-block: var(--space-md) !important) + +! Move the inbox button +discord.com##.bar_c38106:style(z-index: 1000 !important; overflow: hidden !important) +discord.com##.visual-refresh :is(.toolbar__9293f, .searchBar__1ac1c):style(margin-right: calc(var(--space-32) + var(--space-xs)) !important) +discord.com##.visual-refresh .recentsIcon_c99c29:style(position: fixed !important; top: var(--space-8) !important; right: var(--space-xs) !important) + +! Compact horizontal padding on server list +discord.com##.visual-refresh:style(--custom-guild-list-padding: min(var(--space-sm)) !important) + +! Hide download app on server list +discord.com##.listItem__650eb:has([data-list-item-id="guildsnav___app-download-button"]) + +! Hide Nitro and Discord Shop tab +discord.com##.channel__972a0:has(a[href="/shop"], a[href="/store"]) + +! Hide gift button in chat message input +discord.com##.buttons__74017 .button__201d5[aria-label="Send a gift"] + +! Hide message input on mini profile cards +discord.com##.container_a99829 +discord.com##.footer__5be3e:has(> .container_a99829:only-child) +#+end_src + +** Gmail +#+begin_src org :noweb yes :tangle chase-gmail.txt +! Title: Gmail Filters +! Description: Filters for Gmail's webmail interface +<
> + +! Upgrade Gmail +mail.google.com##.CRPU9d +#+end_src + +** Amazon +#+begin_src org :noweb yes :tangle chase-amazon.txt +! Title: Amazon Filters +! Description: Filters for Amazon.com +<
> + +! Amazon Prime Nags? +amazon.com##.prime-updp-accept-cta.a-span-last +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 +#+end_src + +** Insight Central +#+begin_src org :noweb yes :tangle chase-insight-central.txt +! Title: Insight Central Filters +! Description: Filters for Insight Central forums +<
> + +! IC Sidebar ads +www.insightcentral.net##div.sidebar-block:nth-of-type(1) +www.insightcentral.net##div.sidebar-block:nth-of-type(5) +#+end_src + +** Onshape +#+begin_src org :noweb yes :tangle chase-onshape.txt +! Title: Onshape Filters +! Description: Filters for Onshape +<
> + +! Onshape tour +cad.onshape.com##.zero-state-header.section-header +cad.onshape.com##.zero-state-open.zero-state-panel +#+end_src + +** Discover +#+begin_src org :noweb yes :tangle chase-discover.txt +! Title: Discover Filters +! Description: Filters for Discover.com +<
> + +! Attempt to remove id protection nag from Discover +card.discover.com###main-content-rwd > div.dmp-slide.show-placement +#+end_src + + +* Local Variables :noexport: +Local Variables: +org-confirm-babel-evaluate: nil +End: + +#+name: lastmodified +#+begin_src shell +date -u --iso-8601='seconds' +#+end_src + +#+name: header +#+begin_src shell :noweb yes +! Version: 1.0.0 +! Last modified: <> +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE +#+end_src diff --git a/chase-amazon.txt b/chase-amazon.txt new file mode 100644 index 0000000..6833aee --- /dev/null +++ b/chase-amazon.txt @@ -0,0 +1,14 @@ +! Title: Amazon Filters +! Description: Filters for Amazon.com +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! Amazon Prime Nags? +amazon.com##.prime-updp-accept-cta.a-span-last +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 diff --git a/chase-discord.txt b/chase-discord.txt new file mode 100644 index 0000000..19c8261 --- /dev/null +++ b/chase-discord.txt @@ -0,0 +1,34 @@ +! Title: Discord Filters +! Description: Filters to clean up Discord UI +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! 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) +discord.com##.visual-refresh :is(.sidebarListRounded_c48ade, .container__01ae2, .callContainer_cb9592):style(border-top: 0 !important; border-radius: 0 !important) +discord.com##.visual-refresh .scroller_ef3116:style(padding-block: var(--space-md) !important) + +! Move the inbox button +discord.com##.bar_c38106:style(z-index: 1000 !important; overflow: hidden !important) +discord.com##.visual-refresh :is(.toolbar__9293f, .searchBar__1ac1c):style(margin-right: calc(var(--space-32) + var(--space-xs)) !important) +discord.com##.visual-refresh .recentsIcon_c99c29:style(position: fixed !important; top: var(--space-8) !important; right: var(--space-xs) !important) + +! Compact horizontal padding on server list +discord.com##.visual-refresh:style(--custom-guild-list-padding: min(var(--space-sm)) !important) + +! Hide download app on server list +discord.com##.listItem__650eb:has([data-list-item-id="guildsnav___app-download-button"]) + +! Hide Nitro and Discord Shop tab +discord.com##.channel__972a0:has(a[href="/shop"], a[href="/store"]) + +! Hide gift button in chat message input +discord.com##.buttons__74017 .button__201d5[aria-label="Send a gift"] + +! Hide message input on mini profile cards +discord.com##.container_a99829 +discord.com##.footer__5be3e:has(> .container_a99829:only-child) diff --git a/chase-discover.txt b/chase-discover.txt new file mode 100644 index 0000000..40473b4 --- /dev/null +++ b/chase-discover.txt @@ -0,0 +1,10 @@ +! Title: Discover Filters +! Description: Filters for Discover.com +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! Attempt to remove id protection nag from Discover +card.discover.com###main-content-rwd > div.dmp-slide.show-placement diff --git a/chase-global.txt b/chase-global.txt new file mode 100644 index 0000000..ff00d86 --- /dev/null +++ b/chase-global.txt @@ -0,0 +1,10 @@ +! Title: Global Filters +! Description: Filters allowed on all websites +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! Hide sign in with Google +||accounts.google.com/gsi/*$xhr,script,3p diff --git a/chase-gmail.txt b/chase-gmail.txt new file mode 100644 index 0000000..cd8fe6f --- /dev/null +++ b/chase-gmail.txt @@ -0,0 +1,10 @@ +! Title: Gmail Filters +! Description: Filters for Gmail's webmail interface +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! Upgrade Gmail +mail.google.com##.CRPU9d diff --git a/chase-insight-central.txt b/chase-insight-central.txt new file mode 100644 index 0000000..6ef15b4 --- /dev/null +++ b/chase-insight-central.txt @@ -0,0 +1,11 @@ +! Title: Insight Central Filters +! Description: Filters for Insight Central forums +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! IC Sidebar ads +www.insightcentral.net##div.sidebar-block:nth-of-type(1) +www.insightcentral.net##div.sidebar-block:nth-of-type(5) diff --git a/chase-onshape.txt b/chase-onshape.txt new file mode 100644 index 0000000..2bb0620 --- /dev/null +++ b/chase-onshape.txt @@ -0,0 +1,11 @@ +! Title: Onshape Filters +! Description: Filters for Onshape +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! Onshape tour +cad.onshape.com##.zero-state-header.section-header +cad.onshape.com##.zero-state-open.zero-state-panel diff --git a/chase-youtube-content.txt b/chase-youtube-content.txt new file mode 100644 index 0000000..080c5d2 --- /dev/null +++ b/chase-youtube-content.txt @@ -0,0 +1,16 @@ +! Title: YouTube Content Filters +! Description: *Opinionated* filters to clean up unwanted content from YouTube +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! 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"]) + +! 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"])) diff --git a/chase-youtube-search.txt b/chase-youtube-search.txt new file mode 100644 index 0000000..8e42404 --- /dev/null +++ b/chase-youtube-search.txt @@ -0,0 +1,22 @@ +! Title: YouTube Search Filters +! Description: Filters to clean up Shorts and Playables on YouTube +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! 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*$/)) + +! Hide list of recent uploads from a channel from search +www.youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/) + +! Hide Mix results from search +www.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) + +! 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 diff --git a/chase-youtube-shorts.txt b/chase-youtube-shorts.txt new file mode 100644 index 0000000..c274459 --- /dev/null +++ b/chase-youtube-shorts.txt @@ -0,0 +1,37 @@ +! Title: YouTube Shorts Filters +! Description: Filters to clean up Shorts and Playables on YouTube +! Version: 1.0.0 +! Last modified: 2025-06-29T23:10:23+00:00 +! Expires: 2 weeks (update frequency) +! Homepage: https://git.traphouse.cathoderaytube.net/chase/ublock-filters +! License: https://git.traphouse.cathoderaytube.net/chase/ublock-filters/src/branch/main/LICENSE + +! Hide playables on homepage +www.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)) + +! 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"])) + +! Hide shorts button in sidebar +www.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)) + +! Hide shorts in recommended videos +www.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)) +! New style (2023-10) +www.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)