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
This commit is contained in:
Tom Watson 2021-06-13 12:43:35 +02:00
parent b1f4153917
commit 4f1da4265c
2 changed files with 9 additions and 0 deletions

View File

@ -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",

4
styles.css Normal file
View File

@ -0,0 +1,4 @@
#eu-cookie-policy,
#redesign-beta-optin-btn {
display: none;
}