Update block general paywall script (Leaky Paywall/Wordpress)

This commit is contained in:
magnolia1234 2022-09-25 09:33:43 +02:00
parent 7f8abe1eb7
commit b1916a2a30
6 changed files with 19 additions and 5 deletions

View File

@ -817,6 +817,11 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
var medium_custom_domain = (matchUrlDomain('cdn-client.medium.com', details.url) && ['script'].includes(details.type) && !matchUrlDomain(medium_custom_domains.concat(['medium.com']), header_referer) && enabledSites.includes('###_medium_custom'));
if (medium_custom_domain)
medium_custom_domains = customAddRules(medium_custom_domains);
else {
// remove cookies for Leaky Paywall/WordPress sites (opt-in to custom sites)
var leaky_paywall_domain = (details.url.match(/\/leaky-paywall(-|\/)/) && ['script'].includes(details.type) && !matchUrlDomain(leaky_paywall_domains.concat(['griffithreview.com']), header_referer) && enabledSites.includes('###_wp_leaky_paywall'));
if (leaky_paywall_domain)
leaky_paywall_domains = customAddRules(leaky_paywall_domains);
else {
// remove cookies & set googlebot-useragent for sites substack platform (custom domains)
var substack_custom_domain = (matchUrlDomain('substackcdn.com', details.url) && ['script', 'stylesheet'].includes(details.type) && !matchUrlDomain(substack_custom_domains.concat(['substack.com']), header_referer) && enabledSites.includes('###_substack_custom'));
@ -940,6 +945,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
}
}
}
}
} // not in excludedSites

View File

@ -10,6 +10,7 @@ Fix Hearst Communications (newspapers)
Fix The (New Orleans) Advocate
Fix The Athletic
Fix The Chronicle of Higher Education (& Philanthropy)
Update block general paywall script (Leaky Paywall/Wordpress)
* v2.8.5.0 (2022-09-18)
Add 60 Millions de consommateurs

View File

@ -110,6 +110,11 @@
"block_regex": "\\.tinypass\\.com\\/",
"domain": "inews.co.uk"
},
"Interestingengineering.com": {
"allow_cookies": 1,
"domain": "interestingengineering.com",
"useragent": "googlebot"
},
"Internationalepolitik.de": {
"allow_cookies": 1,
"domain": "internationalepolitik.de"
@ -256,4 +261,3 @@
"domain": "washingtontimes.com"
}
}

View File

@ -707,5 +707,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.8.5.7"
"version": "2.8.5.8"
}

View File

@ -588,7 +588,6 @@ var defaultSites = {
},
"Griffith Review": {
domain: "griffithreview.com",
block_regex: /\.griffithreview\.com\/.+\/leaky-paywall\//,
remove_cookies_select_drop: ["issuem_lp"]
},
"Groene Amsterdammer": {
@ -2064,6 +2063,9 @@ var defaultSites = {
"Evolok WordPress": {
domain: "###_wp_evolok"
},
"Leaky Paywall (WordPress plugin)": {
domain: "###_wp_leaky_paywall"
},
"MatherAnalytics": {
domain: "matheranalytics.com"
},
@ -2192,7 +2194,7 @@ var nl_mediahuis_region_domains = grouped_sites['###_nl_mediahuis_region'];
var no_nhst_media_domains = grouped_sites['###_no_nhst_media'];
// custom domains (background)
var au_comm_media_domains, au_thewest_domains, ca_gcm_domains, ca_postmedia_domains, ch_media_domains, cl_emol_region_domains, de_funke_medien_domains, de_madsack_domains, es_epiberica_domains, fr_gcf_domains, medium_custom_domains, nl_mediahuis_noord_domains, substack_custom_domains, usa_gannett_domains, usa_hearst_comm_domains, usa_lee_ent_domains, usa_madavor_domains, usa_mcc_domains, usa_mng_domains, usa_pei_domains, usa_townnews_domains;
var au_comm_media_domains, au_thewest_domains, ca_gcm_domains, ca_postmedia_domains, ch_media_domains, cl_emol_region_domains, de_funke_medien_domains, de_madsack_domains, es_epiberica_domains, fr_gcf_domains, leaky_paywall_domains, medium_custom_domains, nl_mediahuis_noord_domains, substack_custom_domains, usa_gannett_domains, usa_hearst_comm_domains, usa_lee_ent_domains, usa_madavor_domains, usa_mcc_domains, usa_mng_domains, usa_pei_domains, usa_townnews_domains;
function init_custom_domains() {
au_comm_media_domains = grouped_sites['###_au_comm_media'];
@ -2205,6 +2207,7 @@ function init_custom_domains() {
de_madsack_domains = grouped_sites['###_de_madsack'];
es_epiberica_domains = grouped_sites['###_es_epiberica'];
fr_gcf_domains = grouped_sites['###_fr_gcf'];
leaky_paywall_domains = [];
medium_custom_domains = grouped_sites['###_medium_custom'];
nl_mediahuis_noord_domains = [];
substack_custom_domains = [];

View File

@ -88,7 +88,7 @@
"cond": "div.contentBody",
"rm_attrib": "data-content-body",
"elems": [{
"cond": "div.contentBody.hidden",
"cond": "div.contentBody[hidden]",
"rm_attrib": "hidden"
}
]