Add il Secolo XIX & La Nuova Sardegna (Italy)

This commit is contained in:
magnolia1234 2021-01-13 21:41:39 +01:00
parent 80f6fa7452
commit 6bb2f7107d
5 changed files with 19 additions and 9 deletions

View File

@ -276,6 +276,8 @@ Madsack Mediengruppe sites like
[Il Fatto Quotidiano](https://www.ilfattoquotidiano.it) - [Il Fatto Quotidiano](https://www.ilfattoquotidiano.it) -
[Il Manifesto](https://ilmanifesto.it) - [Il Manifesto](https://ilmanifesto.it) -
[Il Resto del Carlino](https://www.ilrestodelcarlino.it) - [Il Resto del Carlino](https://www.ilrestodelcarlino.it) -
[Il Secolo XIX](https://www.ilsecoloxix.it) -
[La Nuova Sardegna](https://www.lanuovasardegna.it) -
[La Repubblica](https://www.repubblica.it) - [La Repubblica](https://www.repubblica.it) -
[La Stampa](https://www.lastampa.it) - [La Stampa](https://www.lastampa.it) -
[Le Scienze](https://www.lescienze.it) - [Le Scienze](https://www.lescienze.it) -

View File

@ -233,6 +233,7 @@ var blockedRegexes = {
'hbr.org': /cdn\.tinypass\.com\/.+/, 'hbr.org': /cdn\.tinypass\.com\/.+/,
'historyextra.com': /.+\.evolok\.net\/.+\/authorize\/.+/, 'historyextra.com': /.+\.evolok\.net\/.+\/authorize\/.+/,
'ilrestodelcarlino.it': /cdn\.tinypass\.com\/.+/, 'ilrestodelcarlino.it': /cdn\.tinypass\.com\/.+/,
'ilsecoloxix.it': /\.repstatic\.it\/minify\/sites\/gelocal\/.+\/config\.cache\.php\?name=ilsecoloxix_pw_js/,
'independent.ie': /(cdn\.flip-pay\.com\/clients\/inm\/flip-pay\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/, 'independent.ie': /(cdn\.flip-pay\.com\/clients\/inm\/flip-pay\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/,
'inquirer.com': /cdn\.tinypass\.com\/.+/, 'inquirer.com': /cdn\.tinypass\.com\/.+/,
'irishtimes.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/, 'irishtimes.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/,
@ -240,6 +241,7 @@ var blockedRegexes = {
'kurier.at': /cdn\.tinypass\.com\/.+/, 'kurier.at': /cdn\.tinypass\.com\/.+/,
'la-croix.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/, 'la-croix.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/,
'lasegunda.com': /\.(lasegunda\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/, 'lasegunda.com': /\.(lasegunda\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/,
'lanuovasardegna.it': /\.repstatic\.it\/minify\/sites\/lanuovasardegna\/.+\/config\.cache\.php\?name=social_js/,
'lastampa.it': /.+\.repstatic\.it\/minify\/sites\/lastampa\/.+\/config\.cache\.php\?name=social_js/, 'lastampa.it': /.+\.repstatic\.it\/minify\/sites\/lastampa\/.+\/config\.cache\.php\?name=social_js/,
'latercera.com': /(.+\.latercera\.com\/arc\/subs\/p\.js|cdn\.cxense\.com\/.+)/, 'latercera.com': /(.+\.latercera\.com\/arc\/subs\/p\.js|cdn\.cxense\.com\/.+)/,
'latimes.com': /js\.matheranalytics\.com\/.+/, 'latimes.com': /js\.matheranalytics\.com\/.+/,
@ -746,15 +748,6 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
}); });
} }
// remove cookies Discover Magazine
if (matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer) && isSiteEnabled({url: 'https://www.discovermagazine.com'})) {
ext_api.cookies.getAll({domain: 'discovermagazine.com'}, function(cookies) {
for (let cookie of cookies) {
ext_api.cookies.remove({url: (cookie.secure ? "https://" : "http://") + cookie.domain + cookie.path, name: cookie.name});
}
});
}
// block external javascript for custom sites (optional) // block external javascript for custom sites (optional)
var domain_blockjs_ext = matchUrlDomain(block_js_custom_ext, header_referer); var domain_blockjs_ext = matchUrlDomain(block_js_custom_ext, header_referer);
if (domain_blockjs_ext && !matchUrlDomain(domain_blockjs_ext, details.url) && details.url.match(/(\.js$|\.js\?|\/json\?)/) && isSiteEnabled({url: header_referer})) { if (domain_blockjs_ext && !matchUrlDomain(domain_blockjs_ext, details.url) && details.url.match(/(\.js$|\.js\?|\/json\?)/) && isSiteEnabled({url: header_referer})) {
@ -803,6 +796,15 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
return; return;
} }
// remove cookies Discover Magazine
if (details.type === 'image' && matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer) && isSiteEnabled({url: 'https://www.discovermagazine.com'})) {
ext_api.cookies.getAll({domain: 'discovermagazine.com'}, function(cookies) {
for (let cookie of cookies) {
ext_api.cookies.remove({url: (cookie.secure ? "https://" : "http://") + cookie.domain + cookie.path, name: cookie.name});
}
});
}
// block javascript of (sub)domain for custom sites (optional) // block javascript of (sub)domain for custom sites (optional)
var domain_blockjs = matchUrlDomain(block_js_custom, details.url); var domain_blockjs = matchUrlDomain(block_js_custom, details.url);
if (domain_blockjs && matchUrlDomain(domain_blockjs, details.url) && details.url.match(/(\.js$|\.js\?|\/json\?)/)) { if (domain_blockjs && matchUrlDomain(domain_blockjs, details.url) && details.url.match(/(\.js$|\.js\?|\/json\?)/)) {

View File

@ -3,6 +3,8 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Add Cicero (Germany) Add Cicero (Germany)
Add Il Secolo XIX (Italy)
Add La Nuova Sardegna (Italy)
Fix-update Discover Magazine Fix-update Discover Magazine
Fix-update Faz.net (Zeitung subdomain) Fix-update Faz.net (Zeitung subdomain)
Update set user-agent/referer (limit) Update set user-agent/referer (limit)

View File

@ -182,6 +182,7 @@
"*://*.ilmattino.it/*", "*://*.ilmattino.it/*",
"*://*.ilmessaggero.it/*", "*://*.ilmessaggero.it/*",
"*://*.ilrestodelcarlino.it/*", "*://*.ilrestodelcarlino.it/*",
"*://*.ilsecoloxix.it/*",
"*://*.inc.com/*", "*://*.inc.com/*",
"*://*.independent.ie/*", "*://*.independent.ie/*",
"*://*.inkl.com/*", "*://*.inkl.com/*",
@ -201,6 +202,7 @@
"*://*.ladepeche.fr/*", "*://*.ladepeche.fr/*",
"*://*.lalsace.fr/*", "*://*.lalsace.fr/*",
"*://*.lanacion.com.ar/*", "*://*.lanacion.com.ar/*",
"*://*.lanuovasardegna.it/*",
"*://*.lardennais.fr/*", "*://*.lardennais.fr/*",
"*://*.larioja.com/*", "*://*.larioja.com/*",
"*://*.lasegunda.com/*", "*://*.lasegunda.com/*",

View File

@ -93,6 +93,7 @@ var defaultSites =
"Il Manifesto": "ilmanifesto.it", "Il Manifesto": "ilmanifesto.it",
"Il Messaggero (+ regional)": "###_it_ilmessaggero", "Il Messaggero (+ regional)": "###_it_ilmessaggero",
"Il Resto del Carlino": "ilrestodelcarlino.it", "Il Resto del Carlino": "ilrestodelcarlino.it",
"Il Secolo XIX": "ilsecoloxix.it",
"Inc.com": "inc.com", "Inc.com": "inc.com",
"Inkl": "inkl.com", "Inkl": "inkl.com",
"Intelligent Investor": "intelligentinvestor.com.au", "Intelligent Investor": "intelligentinvestor.com.au",
@ -106,6 +107,7 @@ var defaultSites =
"La Croix": "la-croix.com", "La Croix": "la-croix.com",
"La Estrella de Valparaíso": "estrellavalpo.cl", "La Estrella de Valparaíso": "estrellavalpo.cl",
"La Nación": "lanacion.com.ar", "La Nación": "lanacion.com.ar",
"La Nuova Sardegna": "lanuovasardegna.it",
"La Repubblica": "repubblica.it", "La Repubblica": "repubblica.it",
"La Segunda": "lasegunda.com", "La Segunda": "lasegunda.com",
"La Stampa": "lastampa.it", "La Stampa": "lastampa.it",