# -*- org-confirm-babel-evaluate: nil -*- #+TITLE: ublock-filters #+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. 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). ** *[[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 * Filters :PROPERTIES: :header-args: :noweb-ref allfilters :noweb-sep "\n\n" :END: ** Global These filters are enabled on all websites. #+begin_src txt ! [ Global Filters ] ! Hide sign in with Google ||accounts.google.com/gsi/*$xhr,script,3p #+end_src ** YouTube Removes shorts from as many places as possible, including search results and subscriptions. 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;) ! Hide paid sponsor badge from thumbnail youtube.com##.ytmPaidContentOverlayHost ! Hide playables on homepage 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"]) 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 in recommended videos youtube.com##ytd-reel-shelf-renderer ! 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 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 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*$/)) 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 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)))) #+end_src ** Discord UI improvements for in-browser 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) 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"] discord.com##.buttons__74017 > .button__24af7.button__74017 ! Hide message input on mini profile cards discord.com##.container_a99829 discord.com##.footer__5be3e:has(> .container_a99829:only-child) #+end_src ** Google Filters for Google services. #+begin_src txt ! [ Google ] ! Upgrade Gmail mail.google.com##.CRPU9d ! 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. #+begin_src txt ! [ Amazon ] ! 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 ! Prime box on product page amazon.com##.abb-widget-box-border.a-box #+end_src ** 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 #+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 #+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 #+begin_src txt ! [ Menards ] ! Hide email banner from bottom of screen menards.com##div#emailBanner.email-banner.floating.w-100 #+end_src ** Indeed #+begin_src txt ! [ Indeed ] ! Hide sign in with Google indeed.com##.icl-Card #+end_src ** eBay #+begin_src txt ! [ eBay ] ! 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 US #+begin_src txt ! [ AliExpress US ] ! 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 #+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 changes to =README.org= rather than the individual filter list files. * License #+begin_src txt :tangle LICENSE DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO. #+end_src * Development :noexport: *This section is not rendered when viewing on Gitea.* ** 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. Save and tangle the new =chase-all.txt= file. ** 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 3.0.0 #+end_src *** Last Modified #+name: lastmodified #+begin_src emacs-lisp (format-time-string "%F") #+end_src #+name: header #+begin_src txt :noweb yes ! Version: <> ! Last modified: <> ! 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 !!! #+end_src ** File Generation #+begin_src txt :noweb yes :tangle chase-all.txt ! Title: chase's uBlock Filter Collection ! Description: All filters provided by chase's filter repo <
> <> #+end_src