mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 01:11:04 +00:00
Add il Secolo XIX & La Nuova Sardegna (Italy)
This commit is contained in:
parent
80f6fa7452
commit
6bb2f7107d
@ -276,6 +276,8 @@ Madsack Mediengruppe sites like
|
||||
[Il Fatto Quotidiano](https://www.ilfattoquotidiano.it) -
|
||||
[Il Manifesto](https://ilmanifesto.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 Stampa](https://www.lastampa.it) -
|
||||
[Le Scienze](https://www.lescienze.it) -
|
||||
|
@ -233,6 +233,7 @@ var blockedRegexes = {
|
||||
'hbr.org': /cdn\.tinypass\.com\/.+/,
|
||||
'historyextra.com': /.+\.evolok\.net\/.+\/authorize\/.+/,
|
||||
'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)/,
|
||||
'inquirer.com': /cdn\.tinypass\.com\/.+/,
|
||||
'irishtimes.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/,
|
||||
@ -240,6 +241,7 @@ var blockedRegexes = {
|
||||
'kurier.at': /cdn\.tinypass\.com\/.+/,
|
||||
'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/,
|
||||
'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/,
|
||||
'latercera.com': /(.+\.latercera\.com\/arc\/subs\/p\.js|cdn\.cxense\.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)
|
||||
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})) {
|
||||
@ -803,6 +796,15 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
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)
|
||||
var domain_blockjs = matchUrlDomain(block_js_custom, details.url);
|
||||
if (domain_blockjs && matchUrlDomain(domain_blockjs, details.url) && details.url.match(/(\.js$|\.js\?|\/json\?)/)) {
|
||||
|
@ -3,6 +3,8 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Cicero (Germany)
|
||||
Add Il Secolo XIX (Italy)
|
||||
Add La Nuova Sardegna (Italy)
|
||||
Fix-update Discover Magazine
|
||||
Fix-update Faz.net (Zeitung subdomain)
|
||||
Update set user-agent/referer (limit)
|
||||
|
@ -182,6 +182,7 @@
|
||||
"*://*.ilmattino.it/*",
|
||||
"*://*.ilmessaggero.it/*",
|
||||
"*://*.ilrestodelcarlino.it/*",
|
||||
"*://*.ilsecoloxix.it/*",
|
||||
"*://*.inc.com/*",
|
||||
"*://*.independent.ie/*",
|
||||
"*://*.inkl.com/*",
|
||||
@ -201,6 +202,7 @@
|
||||
"*://*.ladepeche.fr/*",
|
||||
"*://*.lalsace.fr/*",
|
||||
"*://*.lanacion.com.ar/*",
|
||||
"*://*.lanuovasardegna.it/*",
|
||||
"*://*.lardennais.fr/*",
|
||||
"*://*.larioja.com/*",
|
||||
"*://*.lasegunda.com/*",
|
||||
|
2
sites.js
2
sites.js
@ -93,6 +93,7 @@ var defaultSites =
|
||||
"Il Manifesto": "ilmanifesto.it",
|
||||
"Il Messaggero (+ regional)": "###_it_ilmessaggero",
|
||||
"Il Resto del Carlino": "ilrestodelcarlino.it",
|
||||
"Il Secolo XIX": "ilsecoloxix.it",
|
||||
"Inc.com": "inc.com",
|
||||
"Inkl": "inkl.com",
|
||||
"Intelligent Investor": "intelligentinvestor.com.au",
|
||||
@ -106,6 +107,7 @@ var defaultSites =
|
||||
"La Croix": "la-croix.com",
|
||||
"La Estrella de Valparaíso": "estrellavalpo.cl",
|
||||
"La Nación": "lanacion.com.ar",
|
||||
"La Nuova Sardegna": "lanuovasardegna.it",
|
||||
"La Repubblica": "repubblica.it",
|
||||
"La Segunda": "lasegunda.com",
|
||||
"La Stampa": "lastampa.it",
|
||||
|
Loading…
Reference in New Issue
Block a user