Fix Corriere della Sera, Il Messaggero & Quotidiano.net (amp)
This commit is contained in:
parent
299f52d99d
commit
508471a424
@ -5,29 +5,18 @@ Post-release
|
||||
Add Koelner Stadt-Anzeiger & Koelnische Rundschau
|
||||
Add The (New Orleans) Advocate
|
||||
Remove Caixin Global (obsolete)
|
||||
Fix ABC.es (amp)
|
||||
Fix Artnet (amp)
|
||||
Fix Billboard (amp)
|
||||
Fix Challenges.fr (amp)
|
||||
Fix Digiday (amp)
|
||||
Fix Elle.fr (amp)
|
||||
Fix ET Prime (amp)
|
||||
Fix Fortune (amp)
|
||||
Fix Bloomberg Quint (bq blue)
|
||||
Fix Funke Mediengruppe (amp)
|
||||
Fix Inkl (images)
|
||||
Fix L'Opinion.fr (amp)
|
||||
Fix Lecho.be (separate from Groupe Rossel)
|
||||
Fix Lee Enterprises Group (amp)
|
||||
Fix LiveMint (amp)
|
||||
Fix Los Angeles Times & San Diego Union-Tribune (amp)
|
||||
Fix Newsday (amp)
|
||||
Fix Repubblica sites (no amp)
|
||||
Fix Science & Vie (amp)
|
||||
Fix The Boston Globe (amp)
|
||||
Fix The Dallas Morning News (amp)
|
||||
Fix USA Today & Gannett Group (amp)
|
||||
Fix Vanity Fair (amp)
|
||||
Fix amp: ABC.es
|
||||
Fix amp: Artnet, Billboard, Digiday, Fortune, Lee Enterprises Group, Newsday, The Boston Globe, The Dallas Morning News & Vanity Fair
|
||||
Fix amp: Los Angeles Times & San Diego Union-Tribune
|
||||
Fix amp: USA Today & Gannett Group
|
||||
Fix amp: Challenges.fr, Elle.fr, L'Opinion.fr & Science et Vie
|
||||
Fix amp: Corriere della Sera, Il Messaggero & Quotidiano.net
|
||||
Fix amp: ET Prime & LiveMint
|
||||
Fix amp: Funke Mediengruppe
|
||||
|
||||
* v2.4.6.0 (2021-12-05)
|
||||
Add Artnet
|
||||
|
@ -14,6 +14,7 @@ var es_unidad_domains = ['elmundo.es', 'expansion.com', 'marca.com'];
|
||||
var fi_alma_talent_domains = ['arvopaperi.fi', 'iltalehti.fi', 'kauppalehti.fi', 'marmai.fi', 'mediuutiset.fi', 'mikrobitti.fi', 'talouselama.fi', 'tekniikkatalous.fi', 'tivi.fi', 'uusisuomi.fi'];
|
||||
var fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', 'lalsace.fr', 'ledauphine.com', 'lejsl.com', 'leprogres.fr', 'republicain-lorrain.fr', 'vosgesmatin.fr'];
|
||||
var fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midi-olympique.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.fr'];
|
||||
var it_ilmessaggero_domains = ['corriereadriatico.it', 'ilgazzettino.it', 'ilmattino.it', 'ilmessaggero.it', 'quotidianodipuglia.it'];
|
||||
var it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'italian.tech', 'lanuovasardegna.it', 'lastampa.it', 'repubblica.it'];
|
||||
var it_quotidiano_domains = ['ilgiorno.it', 'ilrestodelcarlino.it', 'iltelegrafolivorno.it', 'lanazione.it', 'quotidiano.net'];
|
||||
var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl'];
|
||||
@ -1083,11 +1084,15 @@ else
|
||||
} else if (window.location.hostname.endsWith('.it') || matchDomain(['italian.tech', 'limesonline.com', 'quotidiano.net'])) {//italy
|
||||
|
||||
if (matchDomain('corriere.it')) {
|
||||
let url = window.location.href;
|
||||
if (url.includes('_preview.shtml')) {
|
||||
window.setTimeout(function () {
|
||||
window.location.href = url.replace('_preview.shtml', '.shtml').split('?')[0];
|
||||
}, 500); // Delay (in milliseconds)
|
||||
if (window.location.pathname.endsWith('_amp.html')) {
|
||||
amp_unhide_subscr_section('amp-ad, amp-embed');
|
||||
} else {
|
||||
let url = window.location.href;
|
||||
if (url.includes('_preview.shtml')) {
|
||||
window.setTimeout(function () {
|
||||
window.location.href = url.replace('_preview.shtml', '.shtml').split('?')[0];
|
||||
}, 500); // Delay (in milliseconds)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1106,12 +1111,22 @@ else if (matchDomain('ilfattoquotidiano.it')) {
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain(it_ilmessaggero_domains)) {
|
||||
if (window.location.pathname.toLowerCase().includes('/amp/')) {
|
||||
amp_unhide_subscr_section('amp-ad, amp-embed');
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain(it_quotidiano_domains)) {
|
||||
let detail_text_truncated = document.querySelector('div.detail-text--truncated');
|
||||
let detail_page_paywall = document.querySelector('body.detail-page--paywall');
|
||||
if (detail_page_paywall) {
|
||||
removeDOMElement(detail_text_truncated);
|
||||
detail_page_paywall.classList.remove('detail-page--paywall');
|
||||
if (window.location.pathname.endsWith('/amp')) {
|
||||
amp_unhide_access_hide('="c.customGranted"', '="NOT c.customGranted"');
|
||||
} else {
|
||||
let detail_text_truncated = document.querySelector('div.detail-text--truncated');
|
||||
let detail_page_paywall = document.querySelector('body.detail-page--paywall');
|
||||
if (detail_page_paywall) {
|
||||
removeDOMElement(detail_text_truncated);
|
||||
detail_page_paywall.classList.remove('detail-page--paywall');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
6
sites.js
6
sites.js
@ -250,7 +250,7 @@ var defaultSites = {
|
||||
"Corriere della Sera": {
|
||||
domain: "corriere.it",
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.tinypass\.com\/|\.corriereobjects\.it\/.+\/js\/_paywall\.sjs)/
|
||||
block_regex: /(\.tinypass\.com\/|\.corriereobjects\.it\/.+\/js\/_paywall\.sjs|cdn\.ampproject\.org\/v\d\/amp-(ad|consent|subscriptions)-.+\.js)/
|
||||
},
|
||||
"Crain Communications": {
|
||||
domain: "###_usa_craincomm",
|
||||
@ -698,7 +698,7 @@ var defaultSites = {
|
||||
"ilmessaggero.it",
|
||||
"quotidianodipuglia.it"
|
||||
],
|
||||
block_regex: /utils\.cedsdigital\.it\/js\/PaywallMeter\.js/
|
||||
block_regex: /(utils\.cedsdigital\.it\/js\/PaywallMeter\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent|subscriptions)-.+\.mjs)/
|
||||
},
|
||||
"Il Secolo XIX": {
|
||||
domain: "ilsecoloxix.it",
|
||||
@ -1182,7 +1182,7 @@ var defaultSites = {
|
||||
"quotidiano.net"
|
||||
],
|
||||
allow_cookies: 1,
|
||||
block_regex: /(cdn\.cxense\.com\/|\.tinypass\.com\/)/
|
||||
block_regex: /(cdn\.cxense\.com\/|\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent)-.+\.js)/
|
||||
},
|
||||
"Reuters": {
|
||||
domain: "reuters.com",
|
||||
|
Loading…
x
Reference in New Issue
Block a user