Fix Groupe SudOuest.fr

This commit is contained in:
magnolia1234 2022-06-28 16:39:02 +02:00
parent c5d2de53d5
commit 75fe7cb022
5 changed files with 32 additions and 13 deletions

View file

@ -6,7 +6,7 @@ var ext_name = manifestData.name;
var ext_version = manifestData.version;
const cs_limit_except = ['elespanol.com', 'faz.net', 'nation.africa', 'nationalgeographic.com', 'thetimes.co.uk'];
const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'ipolitics.ca', 'italiaoggi.it', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'vn.nl'].concat(be_mediahuis_domains, fr_groupe_sud_ouest_domains, nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains);
const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'ipolitics.ca', 'italiaoggi.it', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'vn.nl'].concat(be_mediahuis_domains, nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains);
var currentTabUrl = '';
var csDone = false;
var optin_setcookie = false;

View file

@ -5,6 +5,7 @@ Post-release
Add BQ Prime (former Bloomberg Quint)
Remove Deutsche Wirtschafts Nachrichten (fix obsolete)
Fix Financial Times (cookie-banner)
Fix Groupe SudOuest.fr
Fix Knack.be & LeVif.be
Fix Times of India (no amp)
@ -203,7 +204,7 @@ Update block general paywall script (Pigeon/WordPress)
Add Condé Nast magazines & Vogue Business
Add Diario Correo (Grupo El Comercio)
Add Eastwest (it/en)
Add Groupe Sud Ouest (France)
Add Groupe SudOuest.fr
Fix Australian Community Media (images)
Fix Lequipe.fr & LesEchos.fr (refresh)
Fix New York Magazine sites (cookies)
@ -743,7 +744,7 @@ Fix Madsack Mediengruppe (amp)
Fix Medium/Towards Data Science (login)
Fix Medium custom domains (login & in options)
Fix Stratfor (style; not menu)
Fix Sud Ouest (decode text)
Fix SudOuest.fr (decode text)
Update custom sites (set referer)
* v2.0.6.0 (2021-01-31)
@ -780,7 +781,7 @@ Add Il Secolo XIX (Italy)
Add L'Usine Nouvelle (France)
Add La Nuova Sardegna (Italy)
Add Schweriner Volkszeitung (Germany)
Add Sud Ouest (France)
Add SudOuest.fr
Fix Discover Magazine
Fix Faz.net (Zeitung subdomain)
Fix Funke Medien (Germany)

View file

@ -1526,19 +1526,18 @@ else if (matchDomain(['sudouest.fr', 'charentelibre.fr', 'larepubliquedespyrenee
let url = window.location.href;
let paywall = document.querySelector('.article-premium-footer');
if (paywall) {
let premium = document.querySelector('meta[name="gsoi:premium-content"]');
if (premium) {
if (premium.content) {
let url_premium = window.location.origin + premium.content;
replaceDomElementExt(url_premium, false, true, 'div.full-content');
}
}
removeDOMElement(paywall);
let visible_not_premium = document.querySelector('div.article-body-wrapper.visible-not-premium');
removeDOMElement(paywall, visible_not_premium);
let visible_premium = document.querySelectorAll('div.visible-premium');
for (let elem of visible_premium)
elem.classList.remove('visible-premium');
}
window.setTimeout(function () {
let footer_premium = document.querySelector('.footer-premium');
removeDOMElement(footer_premium);
}, 500);
let ads = document.querySelectorAll('div.pub, div.ph-easy-subscription');
removeDOMElement(...ads);
}
else

View file

@ -686,5 +686,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.7.3.3"
"version": "2.7.3.4"
}

View file

@ -20,6 +20,25 @@
}
]
},
"Groupe Sud Ouest": {
"domain": "###_fr_groupe_sud_ouest",
"group": [
"sudouest.fr",
"charentelibre.fr",
"larepubliquedespyrenees.fr"
],
"allow_cookies": 1,
"cs_code": [{
"cond": "div.article-body-wrapper.visible-not-premium",
"rm_elem": 1,
"elems": [{
"cond": "div.visible-premium",
"rm_class": "visible-premium"
}
]
}
]
},
"Initium Media": {
"domain": "theinitium.com",
"allow_cookies": 1,