From 9aa9053a610460fd1fd2934ba67822f7c4b7b071 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 30 Nov 2022 16:08:23 +0100 Subject: [PATCH] Remove Philonomist (fix obsolete) --- README.md | 1 - changelog.txt | 1 + contentScript.js | 23 +---------------------- manifest.json | 3 +-- sites.js | 6 +----- 5 files changed, 4 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 8894ce0..16dcd61 100644 --- a/README.md +++ b/README.md @@ -456,7 +456,6 @@ Grouped in options:\ [Les Inrockuptibles](https://www.lesinrocks.com) - [Marianne](https://www.marianne.net) - [Paris Match](https://www.parismatch.com) - -[Philonomist (fr/en)](https://www.philonomist.com) - [Philosophie Magazine](https://www.philomag.com) - [Public](https://www.public.fr) - [Science & Vie](https://www.science-et-vie.com) - diff --git a/changelog.txt b/changelog.txt index 312e507..c42bc1f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Welt.de (link to archive.is) Remove BusinessPost.ie (fix obsolete) +Remove Philonomist (fix obsolete) * v2.9.5.0 (2022-11-27) Add Haaretz.co.il & The Marker diff --git a/contentScript.js b/contentScript.js index c193f2e..dfad76d 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1223,7 +1223,7 @@ else if (matchDomain('politicaexterior.com')) { else csDone = true; -} else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'connaissancedesarts.com', 'journaldunet.com', 'la-croix.com', 'lavenir.net', 'ledauphine.com', 'lesinrocks.com', 'lejsl.com', 'lesoir.be', 'loeildelaphotographie.com', 'marianne.net', 'nouvelobs.com', 'parismatch.com', 'philonomist.com', 'science-et-vie.com', 'sudinfo.be'].concat(fr_groupe_nice_matin_domains))) {//france +} else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'connaissancedesarts.com', 'journaldunet.com', 'la-croix.com', 'lavenir.net', 'ledauphine.com', 'lesinrocks.com', 'lejsl.com', 'lesoir.be', 'loeildelaphotographie.com', 'marianne.net', 'nouvelobs.com', 'parismatch.com', 'science-et-vie.com', 'sudinfo.be'].concat(fr_groupe_nice_matin_domains))) {//france if (matchDomain('alternatives-economiques.fr')) { window.setTimeout(function () { @@ -1614,27 +1614,6 @@ else if (matchDomain('nouvelobs.com')) { removeDOMElement(paywall); } -else if (matchDomain('philonomist.com')) { - let paywall = document.querySelector('div.content-bandeau'); - if (paywall) { - removeDOMElement(paywall); - let json_script = getArticleJsonScript(); - if (json_script) { - try { - let json = JSON.parse(json_script.text); - if (json) { - let json_text = parseHtmlEntities(json['@graph'][0].articleBody.replace(/\s{3}/g, '\r\n\r\n')); - let content = document.querySelector('div.main-body'); - if (json_text && content) - content.innerText = json_text; - } - } catch (err) { - console.log(err); - } - } - } -} - else if (matchDomain('science-et-vie.com')) { if (window.location.hostname.startsWith('amp.')) { let pars = document.querySelectorAll('.qiota_reserve > p, .qiota_reserve > h2'); diff --git a/manifest.json b/manifest.json index c20888b..1768e97 100644 --- a/manifest.json +++ b/manifest.json @@ -486,7 +486,6 @@ "*://*.petitbleu.fr/*", "*://*.philanthropy.com/*", "*://*.philomag.com/*", - "*://*.philonomist.com/*", "*://*.philosophynow.org/*", "*://*.pilotonline.com/*", "*://*.piqd.de/*", @@ -731,5 +730,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.9.5.1" + "version": "2.9.5.2" } diff --git a/sites.js b/sites.js index d585b0f..9b88baf 100644 --- a/sites.js +++ b/sites.js @@ -1484,10 +1484,6 @@ var defaultSites = { ], block_regex: /(cdn\.cxense\.com\/|\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/ }, - "Philonomist": { - domain: "philonomist.com", - allow_cookies: 1 - }, "Philosophie Magazine": { domain: "philomag.com", allow_cookies: 1, @@ -2394,4 +2390,4 @@ init_custom_domains(); // sites with no fix (background) var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be']; var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com']; -var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'courrierinternational.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'handelsblatt.com', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(be_mediahuis_nofix_domains, it_gedi_nofix_domains); +var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'courrierinternational.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'handelsblatt.com', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(be_mediahuis_nofix_domains, it_gedi_nofix_domains);