Update block general paywall script (Evolok WordPress)

This commit is contained in:
magnolia1234 2022-04-14 08:03:01 +02:00
parent 740f9d8c24
commit 83776f9ba5
3 changed files with 8 additions and 1 deletions

View file

@ -652,6 +652,7 @@ var block_js = [
"*://*.weborama.fr/*", "*://*.weborama.fr/*",
"*://*.zephr.com/zephr-browser/*", "*://*.zephr.com/zephr-browser/*",
"*://*/c/assets/pigeon.js*", "*://*/c/assets/pigeon.js*",
"*://*/wp-content/evolok/ev-widgets/ev-widgets.min.js*",
"*://cdn.ampproject.org/v*/amp-access-*.*js", "*://cdn.ampproject.org/v*/amp-access-*.*js",
"*://cdn.ampproject.org/v*/amp-subscriptions-*.*js", "*://cdn.ampproject.org/v*/amp-subscriptions-*.*js",
"*://cdn.tinypass.com/*", "*://cdn.tinypass.com/*",
@ -665,7 +666,9 @@ var block_js = [
function disableJavascriptOnListedSites() { function disableJavascriptOnListedSites() {
ext_api.webRequest.onBeforeRequest.addListener(function (details) { ext_api.webRequest.onBeforeRequest.addListener(function (details) {
let header_referer = details.originUrl ? details.originUrl : details.initiator; let header_referer = details.originUrl ? details.originUrl : details.initiator;
if (!(isSiteEnabled(details) || (enabledSites.includes('###_wp_pigeon') && details.url.includes('/c/assets/pigeon.js'))) if (!(isSiteEnabled(details)
|| (enabledSites.includes('###_wp_pigeon') && details.url.includes('/c/assets/pigeon.js'))
|| (enabledSites.includes('###_wp_evolok') && details.url.includes('/wp-content/evolok/ev-widgets/ev-widgets.min.js')))
|| matchUrlDomain(excludedSites.concat(['asia.nikkei.com', 'cambridge.org']), header_referer)) { || matchUrlDomain(excludedSites.concat(['asia.nikkei.com', 'cambridge.org']), header_referer)) {
return; return;
} }

View file

@ -5,6 +5,7 @@ Post-release
Add Aftonbladet.se Add Aftonbladet.se
Add Nzz.ch Regional (opt-in to custom sites) Add Nzz.ch Regional (opt-in to custom sites)
Update block general paywall script (Ensighten) Update block general paywall script (Ensighten)
Update block general paywall script (Evolok WordPress)
* v2.6.4.0 (2022-04-10) * v2.6.4.0 (2022-04-10)
Add El Periodico Extremadura Add El Periodico Extremadura

View file

@ -1930,6 +1930,9 @@ var defaultSites = {
"Evolok": { "Evolok": {
domain: "evolok.net" domain: "evolok.net"
}, },
"Evolok WordPress (opt-in to custom sites)": {
domain: "###_wp_evolok"
},
"MatherAnalytics": { "MatherAnalytics": {
domain: "matheranalytics.com" domain: "matheranalytics.com"
}, },