Add LePoint.fr

This commit is contained in:
magnolia1234 2023-10-14 10:21:20 +02:00
parent fe5c1f0a0f
commit 6b8bf3e87f
9 changed files with 89 additions and 14 deletions

View file

@ -500,6 +500,7 @@ Grouped in options:\
[Le Journal du Net](https://www.journaldunet.com) - [Le Journal du Net](https://www.journaldunet.com) -
[Le Nouvel Economiste](https://www.lenouveleconomiste.fr) - [Le Nouvel Economiste](https://www.lenouveleconomiste.fr) -
[Le Parisien](https://www.leparisien.fr) - [Le Parisien](https://www.leparisien.fr) -
[Le Point](https://www.lepoint.fr) -
[Le Télégramme](https://www.letelegramme.fr) - [Le Télégramme](https://www.letelegramme.fr) -
[Les Échos](https://www.lesechos.fr) - [Les Échos](https://www.lesechos.fr) -
[Les Inrockuptibles](https://www.lesinrocks.com) - [Les Inrockuptibles](https://www.lesinrocks.com) -

View file

@ -374,7 +374,7 @@ function set_rules(sites, sites_updated, sites_custom) {
if (!custom) { if (!custom) {
let isCustomSite = matchDomain(customSites_domains, domain); let isCustomSite = matchDomain(customSites_domains, domain);
let customSite_title = isCustomSite ? Object.keys(customSites).find(key => customSites[key].domain === isCustomSite) : ''; let customSite_title = isCustomSite ? Object.keys(customSites).find(key => customSites[key].domain === isCustomSite) : '';
if (customSite_title && !(rule.add_ext_link || customSitesExt_remove.includes(isCustomSite))) { if (customSite_title && !(sites_custom[customSite_title].add_ext_link || customSitesExt_remove.includes(isCustomSite))) {
// add default block_regex // add default block_regex
let block_regex_default = ''; let block_regex_default = '';
if (rule.hasOwnProperty('block_regex')) if (rule.hasOwnProperty('block_regex'))

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release Post-release
Add LePoint.fr
Add Mz.de & Volksstimme.de Add Mz.de & Volksstimme.de
Remove Mediahuis Nederland Regional (fix obsolete) Remove Mediahuis Nederland Regional (fix obsolete)
Fix Belfast Telegraph/Independent.ie (images) Fix Belfast Telegraph/Independent.ie (images)

View file

@ -314,13 +314,18 @@ if (ext_api.runtime) {
window.addEventListener('message', function (event) { window.addEventListener('message', function (event) {
if (event.data) { if (event.data) {
if (event.data.type === 'from_page') { if (event.data.type === 'from_page') {
if (matchDomain('businesspost.ie')) { if (domain = matchDomain(['businesspost.ie', 'lepoint.fr'])) {
let article_options = {
'businesspost.ie': 'div.article-body-section',
'lepoint.fr': 'div#contenu'
};
let article_sel = article_options[domain];
let data = event.data.data; let data = event.data.data;
let article = document.querySelector('div.article-body-section'); let article = document.querySelector(article_sel);
if (data && article && dompurify_loaded && !msg_once) { if (data && article && dompurify_loaded && !msg_once) {
msg_once = true; msg_once = true;
let parser = new DOMParser(); let parser = new DOMParser();
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(data) + '</div>', 'text/html'); let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(data, {ADD_TAGS: ['iframe'], ADD_ATTR: ['frameborder']}) + '</div>', 'text/html');
let article_new = doc.querySelector('div'); let article_new = doc.querySelector('div');
if (article_new) { if (article_new) {
article.innerHTML = ''; article.innerHTML = '';
@ -1860,6 +1865,66 @@ else if (matchDomain('leparisien.fr')) {
} }
} }
else if (matchDomain('lepoint.fr')) {
function lepoint_main() {
function decryptVariable(a) {
var t = ["point", "les", "payants", "top"],
n = ["le", "avec", "articles", "c"],
o = (function () {
var o = [];
for (var e = 0; e < 4; e++)
o.push(n[e]), o.push(t[e]);
return o
})(),
e = {
stringify: function (o) {
var e = {
ct: o.ciphertext.toString(CryptoJS.enc.Base64)
};
return o.iv && (e.iv = o.iv.toString()),
o.salt && (e.s = o.salt.toString()),
JSON.stringify(e)
},
parse: function (o) {
var e = JSON.parse(o),
t = CryptoJS.lib.CipherParams.create({
ciphertext: CryptoJS.enc.Base64.parse(e.ct)
});
return e.iv && (t.iv = CryptoJS.enc.Hex.parse(e.iv)),
e.s && (t.salt = CryptoJS.enc.Hex.parse(e.s)),
t
}
};
return JSON.parse(CryptoJS.AES.decrypt(JSON.stringify(a), o.join(" "), {
format: e
}).toString(CryptoJS.enc.Utf8))
}
let article = document.querySelector('div#contenu');
if (article && window.variable_article_poool)
window.postMessage({type: 'from_page', data: decryptVariable(window.variable_article_poool)});
}
if (!matchDomain(['journal.lepoint.fr'])) {
let paywall = document.querySelectorAll('aside.paywall');
if (paywall.length) {
removeDOMElement(...paywall);
insert_script(lepoint_main);
}
window.setTimeout(function () {
let ads = document.querySelectorAll('div[id*="WRAP_"], div#StickyPaywall, div#paywall-sticky, div.slotpub, div.sticky-block');
hideDOMElement(...ads);
}, 1000);
} else {
let url = window.location.href;
let paywall = document.querySelectorAll('div.accnt-cmp');
if (paywall.length) {
removeDOMElement(...paywall);
let article = document.querySelector('article > section');
if (article)
article.firstChild.before(archiveLink(url));
}
}
}
else if (matchDomain('lesechos.fr')) { else if (matchDomain('lesechos.fr')) {
if (window.location.pathname.startsWith('/amp/')) { if (window.location.pathname.startsWith('/amp/')) {
ampToHtml(); ampToHtml();

View file

@ -51,5 +51,5 @@
"webRequestBlocking", "webRequestBlocking",
"*://*/*" "*://*/*"
], ],
"version": "3.3.7.7" "version": "3.3.7.8"
} }

View file

@ -1,6 +1,6 @@
{ {
"###_remove_sites": { "###_remove_sites": {
"cs_code": "africaintelligence.fr, arkansasonline.com, bild.de, columbian.com, intelligenceonline.com, intelligenceonline.fr, interestingengineering.com, jeuneafrique.com, lalettrea.fr, lastampa.it, lavozdegalicia.es, law360.com, manager-magazin.de, ouest-france.fr, repubblica.it, risk.net, saechsische.de, swarajyamag.com, thetexan.news, theweek.com, vikatan.com", "cs_code": "africaintelligence.fr, arkansasonline.com, bild.de, columbian.com, intelligenceonline.com, intelligenceonline.fr, interestingengineering.com, jeuneafrique.com, lalettrea.fr, lastampa.it, lavozdegalicia.es, law360.com, lepoint.fr, manager-magazin.de, ouest-france.fr, repubblica.it, risk.net, saechsische.de, swarajyamag.com, thetexan.news, theweek.com, vikatan.com",
"domain": "###" "domain": "###"
}, },
"Abajournal.com": { "Abajournal.com": {
@ -337,12 +337,6 @@
"allow_cookies": 1, "allow_cookies": 1,
"domain": "lemonde.fr" "domain": "lemonde.fr"
}, },
"Lepoint.fr": {
"add_ext_link": "div.info-paywall|div.ArticleBody>p",
"add_ext_link_type": "archive.is",
"allow_cookies": 1,
"domain": "lepoint.fr"
},
"Libraryjournal.com": { "Libraryjournal.com": {
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "\\.libraryjournal.com\\.com\\/.+\\/js\\/metering\\.js", "block_regex": "\\.libraryjournal.com\\.com\\/.+\\/js\\/metering\\.js",

View file

@ -409,6 +409,7 @@
"*://*.lenouveleconomiste.fr/*", "*://*.lenouveleconomiste.fr/*",
"*://*.lenouvelliste.ch/*", "*://*.lenouvelliste.ch/*",
"*://*.leparisien.fr/*", "*://*.leparisien.fr/*",
"*://*.lepoint.fr/*",
"*://*.leprogres.fr/*", "*://*.leprogres.fr/*",
"*://*.lescienze.it/*", "*://*.lescienze.it/*",
"*://*.lesechos.fr/*", "*://*.lesechos.fr/*",
@ -799,5 +800,5 @@
"*://*.wyleex.com/*", "*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "3.3.7.7" "version": "3.3.7.8"
} }

View file

@ -1324,6 +1324,12 @@ var defaultSites = {
block_regex: /\.tinypass\.com\//, block_regex: /\.tinypass\.com\//,
useragent: "googlebot" useragent: "googlebot"
}, },
"Le Point": {
domain: "lepoint.fr",
allow_cookies: 1,
block_regex: /\.poool\.fr\//,
cs_dompurify: 1
},
"Le Télégramme": { "Le Télégramme": {
domain: "letelegramme.fr", domain: "letelegramme.fr",
allow_cookies: 1, allow_cookies: 1,
@ -2772,4 +2778,4 @@ var fr_indigo_nofix_domains = ['africaintelligence.com', 'africaintelligence.fr'
var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'limesonline.com', 'repubblica.it']; var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'limesonline.com', 'repubblica.it'];
var nl_mediahuis_region_nofix_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl']; var nl_mediahuis_region_nofix_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl'];
var uk_delinian_nofix_domains = ['insidepandc.com', 'thedeal.com']; var uk_delinian_nofix_domains = ['insidepandc.com', 'thedeal.com'];
var nofix_sites = ['aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asiatimes.com', 'autosport.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'hbrchina.org', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.fr', 'lesjours.fr', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'mainpost.de', 'manager-magazin.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newslaundry.com', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(fr_indigo_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains, uk_delinian_nofix_domains); var nofix_sites = ['aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asiatimes.com', 'autosport.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'hbrchina.org', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'mainpost.de', 'manager-magazin.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newslaundry.com', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(fr_indigo_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains, uk_delinian_nofix_domains);

View file

@ -57,6 +57,13 @@
"ld_json_url": "div.paywall-teaser-box|div.elementor-widget-container > p", "ld_json_url": "div.paywall-teaser-box|div.elementor-widget-container > p",
"upd_version": "3.3.6.8" "upd_version": "3.3.6.8"
}, },
"Le Point": {
"domain": "lepoint.fr",
"allow_cookies": 1,
"block_regex": "\\.poool\\.fr",
"ld_google_webcache": "aside.paywall|div#contenu",
"upd_version": "3.3.7.8"
},
"Mexico News Daily": { "Mexico News Daily": {
"domain": "mexiconewsdaily.com", "domain": "mexiconewsdaily.com",
"allow_cookies": 1, "allow_cookies": 1,