mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 01:11:04 +00:00
Fix LesEchos.fr (investir)
This commit is contained in:
parent
2f5be5f6b2
commit
6759422cd2
@ -2,6 +2,7 @@
|
||||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Fix LesEchos.fr (investir)
|
||||
Fix NHST Media Group
|
||||
|
||||
* v2.5.9.0 (2022-03-06)
|
||||
|
@ -33,7 +33,7 @@ var usa_mng_domains = ['denverpost.com', 'eastbaytimes.com', 'mercurynews.com'
|
||||
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', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'nknews.org', 'nytimes.com', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', '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, 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', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'lesechos.fr', 'nknews.org', 'nytimes.com', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', '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, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||
if (!matchDomain(arr_localstorage_hold)) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
@ -1346,7 +1346,20 @@ else if (matchDomain('lequipe.fr')) {
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('lesechos.fr') && window.location.href.match(/-\d{6,}/)) {
|
||||
else if (matchDomain('lesechos.fr') && window.location.href.match(/\d{6,}/)) {
|
||||
if (matchDomain('investir.lesechos.fr')) {
|
||||
if (!window.location.href.includes('/amp/')) {
|
||||
let paywall = document.querySelector('div.bloc-paywall');
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (paywall && amphtml) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
} else {
|
||||
let amp_ads = document.querySelectorAll('amp-ad');
|
||||
removeDOMElement(...amp_ads);
|
||||
}
|
||||
} else {
|
||||
window.setTimeout(function () {
|
||||
let abo_banner = document.querySelector('div[class*="pgxf3b-2"]');
|
||||
let ad_blocks = document.querySelectorAll('[class*="jzxvkd"');
|
||||
@ -1394,6 +1407,7 @@ else if (matchDomain('lesechos.fr') && window.location.href.match(/-\d{6,}/)) {
|
||||
}
|
||||
}
|
||||
}, 500); // Delay (in milliseconds)
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('lesinrocks.com')) {
|
||||
|
@ -631,5 +631,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.5.9.1"
|
||||
"version": "2.5.9.2"
|
||||
}
|
||||
|
2
sites.js
2
sites.js
@ -955,7 +955,7 @@ var defaultSites = {
|
||||
"Les Échos": {
|
||||
domain: "lesechos.fr",
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.tinypass\.com\//
|
||||
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad|analytics)-.+\.js)/
|
||||
},
|
||||
"Les Inrockuptibles": {
|
||||
domain: "lesinrocks.com",
|
||||
|
@ -33,6 +33,15 @@
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.piano\\.io\\/|cdn\\.cxense\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|analytics)-.+\\.js)"
|
||||
},
|
||||
"Les Échos": {
|
||||
"domain": "lesechos.fr",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad|analytics)-.+\\.js)",
|
||||
"amp_redirect": {
|
||||
"paywall": ".bloc-paywall"
|
||||
},
|
||||
"amp_unhide": 1
|
||||
},
|
||||
"RugbyPass": {
|
||||
"domain": "rugbypass.com",
|
||||
"allow_cookies": 1,
|
||||
|
Loading…
Reference in New Issue
Block a user