mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Add Corriere dello Sport
This commit is contained in:
parent
5ea458ed0b
commit
df7cad926b
6 changed files with 31 additions and 2 deletions
|
@ -519,6 +519,7 @@ Grouped in options:\
|
|||
|
||||
##### Italy
|
||||
[Corriere della Sera](https://www.corriere.it) -
|
||||
[Corriere dello Sport](https://www.corrieredellosport.it) -
|
||||
[Domani](https://editorialedomani.it) -
|
||||
[Eastwest](https://eastwest.eu) -
|
||||
[GElocal.it](https://quotidiani.gelocal.it) -
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Corriere dello Sport
|
||||
Add Gazet van Antwerpen
|
||||
Add Het Belang van Limburg
|
||||
Add Het Nieuwsblad
|
||||
|
|
|
@ -36,7 +36,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition
|
|||
var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com'];
|
||||
|
||||
// clean local storage of sites (with an exemption for hold-list)
|
||||
var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, nl_pg_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||
var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, nl_pg_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||
if (!matchDomain(arr_localstorage_hold)) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
|
@ -1582,6 +1582,22 @@ if (matchDomain('corriere.it')) {
|
|||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('corrieredellosport.it')) {
|
||||
if (!window.location.pathname.startsWith('/amp/')) {
|
||||
let paywall = document.querySelector('div[class^="MainTextTruncated_paragraph__"]');
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (paywall && amphtml) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
let ads = document.querySelectorAll('div[class^="AdUnit_placeholder"]');
|
||||
removeDOMElement(...ads);
|
||||
} else {
|
||||
let ads = document.querySelectorAll('amp-ad, amp-embed');
|
||||
removeDOMElement(...ads);
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('eastwest.eu')) {
|
||||
let paywall = document.querySelector('.paywall');
|
||||
if (paywall) {
|
||||
|
|
|
@ -141,6 +141,7 @@
|
|||
"*://*.connaissancedesarts.com/*",
|
||||
"*://*.corriere.it/*",
|
||||
"*://*.corriereadriatico.it/*",
|
||||
"*://*.corrieredellosport.it/*",
|
||||
"*://*.cosmopolitan.com/*",
|
||||
"*://*.countryliving.com/*",
|
||||
"*://*.courant.com/*",
|
||||
|
@ -681,5 +682,5 @@
|
|||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.7.0.3"
|
||||
"version": "2.7.0.4"
|
||||
}
|
||||
|
|
4
sites.js
4
sites.js
|
@ -279,6 +279,10 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
block_regex: /(\.tinypass\.com\/|\.corriereobjects\.it\/.+\/js\/_paywall\.sjs|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/
|
||||
},
|
||||
"Corriere dello Sport": {
|
||||
domain: "corrieredellosport.it",
|
||||
allow_cookies: 1
|
||||
},
|
||||
"Crain Communications": {
|
||||
domain: "###_usa_craincomm",
|
||||
group: [
|
||||
|
|
|
@ -9,6 +9,12 @@
|
|||
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Corriere dello Sport": {
|
||||
"domain": "corrieredellosport.it",
|
||||
"allow_cookies": 1,
|
||||
"amp_redirect": "div[class^=\"MainTextTruncated_paragraph__\"]",
|
||||
"new_site": 1
|
||||
},
|
||||
"La Vie": {
|
||||
"domain": "lavie.fr",
|
||||
"allow_cookies": 1,
|
||||
|
|
Loading…
Reference in a new issue