Added filters for Facebook and Reddit

This commit is contained in:
Jim Shepich III 2025-11-06 14:37:11 -05:00
commit 4667fbc46a
2 changed files with 34 additions and 0 deletions

20
facebook.txt Normal file
View File

@ -0,0 +1,20 @@
! Block Facebook pages by default
||facebook.com^$document
! Hide the content of Facebook's homepage in case the user proceeds anyways.
facebook.com###facebook
facebook.com##div[role="main"]
facebook.com##div[role="navigation"]
facebook.com##div[role="complementary"]
! Allow Facebook Marketplace
@@||facebook.com/marketplace/$document
! Unhide main content on Marketplace
facebook.com/marketplace#@##facebook
facebook.com/marketplace#@#div[role="main"]
facebook.com/marketplace#@#div[role="navigation"]
facebook.com/marketplace#@#div[role="complementary"]
! Hide the banner at the top of the page to prevent SPA-style navigation back to the homepage
facebook.com##div[role="banner"]

14
reddit.txt Normal file
View File

@ -0,0 +1,14 @@
! Block all Reddit pages by default
||reddit.com^$document
! In case the user chooses "Proceed", blank out all articles (feed posts) on the Reddit homepage.
reddit.com##article
! Hide the sidebar, except for in subreddit homepages so you can read the descriptions and rules.
reddit.com##:not(:has(shreddit-subreddit-header))#right-sidebar-container
! Allow individual post pages (which always contain r/*/comments/)
@@||reddit.com/r/*/comments/$document
! Hide <nav> elements to prevent SPA-style loading of feeds.
www.reddit.com##nav