Update excluded sites (no general block paywall)

master
magnolia1234 2021-01-19 19:41:10 +01:00
parent 9ad8d10d87
commit 71128511bf
2 changed files with 3 additions and 1 deletions

View File

@ -730,7 +730,8 @@ var block_js = block_js_default.concat(block_js_custom);
// Disable javascript for these sites/general paywall-scripts
function disableJavascriptOnListedSites() {
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
if (!isSiteEnabled(details)) {
let header_referer = details.originUrl ? details.originUrl : details.initiator;
if (!isSiteEnabled(details) || matchUrlDomain(excludedSites, header_referer)) {
return;
}
return {

View File

@ -7,6 +7,7 @@ Add Ruhr Nachrichten (Germany)
Fix-update El Pais (Spain)
Fix-update MIT Sloan Management Review
Update block TinyPass (all subdomains)
Update excluded sites (no general block paywall scripts)
* v2.0.4.0 (2021-01-17)
Add Cicero (Germany)