From 4f1da4265c49f73c387ad9c7effae614265f793e Mon Sep 17 00:00:00 2001 From: Tom Watson Date: Sun, 13 Jun 2021 12:43:35 +0200 Subject: [PATCH] feat: hide problematic elements This hides the eu cookie notice which contains a problematic redirect to new.reddit.com. It also hides the "get new" link in the header. Closes https://github.com/tom-james-watson/old-reddit-redirect/issues/50 Closes https://github.com/tom-james-watson/old-reddit-redirect/issues/51 --- manifest.json | 5 +++++ styles.css | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 styles.css diff --git a/manifest.json b/manifest.json index a2d08fa..4e64f00 100644 --- a/manifest.json +++ b/manifest.json @@ -8,6 +8,11 @@ "48": "img/icon48.png", "128": "img/icon128.png" }, + "content_scripts": [{ + "matches": [ "*://old.reddit.com/*" ], + "css": [ "styles.css" ], + "run_at": "document_start" + }], "permissions": [ "webRequest", "webRequestBlocking", diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..de42705 --- /dev/null +++ b/styles.css @@ -0,0 +1,4 @@ +#eu-cookie-policy, +#redesign-beta-optin-btn { + display: none; +}