From 4667fbc46af91f9e87d0c1ba66c54e988ade44fe Mon Sep 17 00:00:00 2001 From: Jim Shepich III Date: Thu, 6 Nov 2025 14:37:11 -0500 Subject: [PATCH] Added filters for Facebook and Reddit --- facebook.txt | 20 ++++++++++++++++++++ reddit.txt | 14 ++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 facebook.txt create mode 100644 reddit.txt diff --git a/facebook.txt b/facebook.txt new file mode 100644 index 0000000..8bdfac1 --- /dev/null +++ b/facebook.txt @@ -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"] diff --git a/reddit.txt b/reddit.txt new file mode 100644 index 0000000..6d7017c --- /dev/null +++ b/reddit.txt @@ -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