Last active
March 6, 2024 03:49
-
-
Save riceissa/43ea884fbc13aa27b2b283a556184ff8 to your computer and use it in GitHub Desktop.
uBlock Origin filters for Substack and Substack-based websites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! Block annoying Substack stuff | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.subscribe-dialog | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.subscribe-dialog-scroll-modal-scroll-capture | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##[class*=".frontend-components-SubscribePrompt-module__subscribeDialog--"] | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##[class*=".frontend-components-SubscribePrompt-module__background--"] | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.post-end-cta-full | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.show-subscribe.subscription-widget | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.topbar-content | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##body:style(cursor: auto !important;) | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##[class*="_subscribeDialog_"] | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##[class*="SubscribePrompt"] | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##[class*="_background_"] | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##[class*="popoverButtons"] | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.intro-popup-page-0.intro-popup-page | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.default-intro-popup.intro-popup | |
! Modified from https://ronitray.xyz/writing/clean-substack/ | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com###nojs-banner | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.subscribe-btn.subscribe-cta.primary.button | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.notification-container.menu-button.button > svg | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##.subscribe-footer | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##[href^="/subscribe"] > .subscribe-btn.primary.button | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##td.icon.post-meta-item:nth-of-type(1) | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##div.subscribe-widget:nth-of-type(3) | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##div.subscribe-widget > .form > .sideBySideWrap > input | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##div.subscribe-widget > .form > .sideBySideWrap | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##td.icon.post-meta-item:nth-of-type(2) | |
substack.com,overcomingbias.com,astralcodexten.com,mindthefuture.info,benlandautaylor.com##td.icon.post-meta-item:nth-of-type(3) |
@jbm9 Thanks for the comment! I think when I made this Gist 10 months ago Substack was still using hard-coded class names, but I guess they got smarter about it... I've updated those two lines to use yours.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FWIW, I needed to tweak a couple of these a bit to deal with the dynamically-generated class names:
Thanks for posting this, it was a great starting point!