I got really annoyed when browsing reddit on desktop through web browser. kept getting a popup login window after 30 seconds of reading so I took some time and cooked up this filter list to stop that from happening. also removed side banner login stuff on left and ai generated recommended search questions on right. The NSFW blur stuff is still a WIP. Hope this helps some of you.
! ============================================================
! Reddit - overlay / login / upsell cleanup for uBlock Origin
! ============================================================
!
! These are intended for:
! uBlock Origin -> Settings -> My filters
!
! ============================================================
! 1. Reddit blocking modal
! ============================================================
! Remove Reddit's main blocking modal
www.reddit.com###blocking-modal:remove()
! Remove elements explicitly associated with blocking modals
www.reddit.com##[id*="blocking-modal"]
! Remove common Reddit modal/backdrop elements containing login prompts
www.reddit.com##[role="dialog"]:has-text(/Log in|Sign up/i)
! Remove dialogs containing age/18+ prompts
www.reddit.com##[role="dialog"]:has-text(/18\+|age verification|verify your age|mature content/i)
! ============================================================
! 2. Bottom sheets / signup prompts
! ============================================================
! Reddit bottom-sheet component
www.reddit.com##.rpl-bottom-sheet
! Bottom sheets containing login/signup prompts
www.reddit.com##[role="dialog"]:has-text(/log in|sign up|create an account/i)
! ============================================================
! 3. Scroll locking
! ============================================================
! Remove Reddit's known scroll-lock classes
www.reddit.com##+js(rc, scroll-is-blocked, body, stay)
www.reddit.com##+js(rc, rpl-scroll-lock, html, stay)
www.reddit.com##+js(rc, rpl-scroll-lock, body, stay)
! Prevent Reddit from intercepting touch scrolling
www.reddit.com##+js(prevent-addEventListener, touchmove)
! ============================================================
! 4. Upsell / interstitial dialogs
! ============================================================
! Known desktop upsell dialog
www.reddit.com###desktop-dynamic-upsell-dialog
! Remove generic dialogs that identify themselves as upsells
www.reddit.com##[role="dialog"]:has-text(/Get the Reddit app|Open in app|Continue in app/i)
! Remove common login/signup upsell dialogs
www.reddit.com##[role="dialog"]:has-text(/Log in to Reddit|Sign up to Reddit|Join Reddit/i)
! ============================================================
! 5. Current Reddit class-based fallbacks
! ============================================================
! Upsell popup
www.reddit.com##.p-lg.justify-center.items-center.flex-col.w-1\/2.flex
! 720x480 upsell container
www.reddit.com##.w-\[720px\].min-h-\[480px\].flex
! ============================================================
! 6. Reddit's known upsell image
! ============================================================
||i.redd.it/cms/a66fad34e5e2f5b1_desktop_blocking_upsell_interstitial.png$image
! ============================================================
! 7. NSFW / blocking modal fallbacks
! ============================================================
! Reddit's NSFW blocking components
www.reddit.com##xpromo-nsfw-blocking-modal
! Generic prompt slot associated with the NSFW blocker
www.reddit.com##xpromo-nsfw-blocking-modal,slot+.prompt
! Reddit's older NSFW blocking modal
www.reddit.com##[class*="nsfw-blocking-modal"]
! ============================================================
! 8. Remove blur applied to content by Reddit's blocking UI
! ============================================================
! Only target elements whose inline style actually contains blur.
www.reddit.com##[style*="blur"]:style(filter:none!important)
! ============================================================
! 9. Generated-class fallback
! ============================================================
! These use escaped characters deliberately.
www.reddit.com##.p-lg.justify-center.items-center.flex-col.w-1\/2.flex
www.reddit.com##.w-\[720px\].min-h-\[480px\].flex
! Reddit side banner / ad container
www.reddit.com##.overflow-hidden.relative.p-md.bg-neutral-background-weak.rounded-4.m-md.w-\[251px\].h-\[calc\(100vh-64px-56px\)\].flex-col.flex
!www.reddit.com##.grid-container.flex-nav-expanded:style(--flex-nav-width:0!important)
You must log in or # to comment.

