From 2acdd228dfbe2a13acb43b77f92a2afd56fb1bc0 Mon Sep 17 00:00:00 2001 From: skippybosco Date: Sun, 25 Aug 2024 16:42:39 +0800 Subject: [PATCH 1/2] Exclude moderator URLs from redirect added /^\/mod/ to the excludedPaths const --- manifest-v2/background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/manifest-v2/background.js b/manifest-v2/background.js index d0a9a9b..64b8bf1 100644 --- a/manifest-v2/background.js +++ b/manifest-v2/background.js @@ -1,6 +1,7 @@ const oldReddit = "https://old.reddit.com"; const excludedPaths = [ /^\/media/, + /^\/mod/, /^\/poll/, /^\/rpan/, /^\/settings/, From e002022031fe3a16b16e138bad1a684472fd2da4 Mon Sep 17 00:00:00 2001 From: skippybosco Date: Sun, 25 Aug 2024 16:43:33 +0800 Subject: [PATCH 2/2] Exclude moderation URL from redirect Added mod to the condition regexFilter --- manifest-v3/rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest-v3/rules.json b/manifest-v3/rules.json index 08a6172..9b309ce 100644 --- a/manifest-v3/rules.json +++ b/manifest-v3/rules.json @@ -6,7 +6,7 @@ "type": "allow" }, "condition": { - "regexFilter": "^https://\\w*\\.?reddit\\.com/(media|poll|settings|topics|community-points|appeals?|r/[a-zA-Z0-9_]+/s/).*", + "regexFilter": "^https://\\w*\\.?reddit\\.com/(media|mod|poll|settings|topics|community-points|appeals?|r/[a-zA-Z0-9_]+/s/).*", "resourceTypes": ["main_frame"] } },