Refactor (custom) site rules

master
magnolia1234 2021-11-04 18:49:56 +01:00
parent 5aa5687679
commit 71a04a40ca
7 changed files with 1940 additions and 1086 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@ Fix Lee Enterprises Group
Fix LesEchos.fr (json)
Fix WaPo (images)
Fix WSJ (timing)
Refactor (custom) site rules
* v2.4.2.0 (2021-10-31)
Fix Barron's (timing)

View File

@ -39,5 +39,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.4.2.3"
"version": "2.4.2.4"
}

View File

@ -545,5 +545,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.4.2.3"
"version": "2.4.2.4"
}

View File

@ -40,7 +40,7 @@ function renderOptions() {
if (!defaultSites.hasOwnProperty(key)) {
continue;
}
var value = defaultSites[key];
var value = defaultSites[key].domain;
labelEl = document.createElement('label');
var inputEl = document.createElement('input');
inputEl.type = 'checkbox';

View File

@ -21,7 +21,7 @@
<div style="width:90%;">
To add a new site, enter an unique title/domain (without www.).<br>
Select options for useragent (like Googlebot), set referer (ignored when Googlebot is set), block Javascript (on (sub)domain(s) of site and/or external domains), block regular expression and/or unhide text on amp-page.<br>
Custom sites are enabled automatically in <small><button><a href="options.html" style="text-decoration:none;color:inherit">Options</a></button></small> (cookies will be removed by default unless you enable allow_cookies; cookie settings for default sites are ignored).<br>
Custom sites (new) are enabled automatically in <small><button><a href="options.html" style="text-decoration:none;color:inherit">Options</a></button></small> (cookies will be removed by default unless you enable allow_cookies).<br>
If you want to use custom sites (for non-listed sites) enable it in <small><button><a href="optin/opt-in.html" style="text-decoration:none;color:inherit">Opt-in</a></button></small>
<strong>Custom sites enabled: <span id="custom-enabled"></span></strong><br>
You can also just request permissions for the custom sites you added yourself (below).

2088
sites.js

File diff suppressed because it is too large Load Diff