From 3300e221e7c4f76793da6ca4c3b469890e9cb3ed Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 3 Feb 2023 08:07:09 +0100 Subject: [PATCH] Remove Spiegel.de (fix obsolete) --- README.md | 1 - changelog.txt | 1 + contentScript.js | 11 ----------- custom/sites_custom.json | 10 ++++++++++ manifest.json | 1 - sites.js | 6 +----- 6 files changed, 12 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 0add5ea4..20a70bba 100644 --- a/README.md +++ b/README.md @@ -516,7 +516,6 @@ Grouped in options:\ [Berliner Zeitung](https://www.berliner-zeitung.de) - [Cellesche Zeitung](https://www.cz.de) - [Cicero](https://www.cicero.de) - -[Der Spiegel (link to archive.is)](https://www.spiegel.de) - [Der Tagesspiegel (link to archive.is)](https://www.tagesspiegel.de) - [Deutsches Ă„rzteblatt](https://www.aerzteblatt.de) - [Die Rheinpfalz](https://www.rheinpfalz.de) - diff --git a/changelog.txt b/changelog.txt index 43b006d5..af5fb584 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Remove DN.no (fix obsolete) +Remove Spiegel.de (fix obsolete) Fix Conde Nast magazines (cookies) Fix DvhN.nl (json) Fix Madsack Mediengruppe diff --git a/contentScript.js b/contentScript.js index c6bdb1cd..54a44196 100644 --- a/contentScript.js +++ b/contentScript.js @@ -751,17 +751,6 @@ else if (matchDomain('rheinpfalz.de')) { } } -else if (matchDomain('spiegel.de')) { - let url = window.location.href; - let paywall = document.querySelector('div[data-area="paywall"]'); - if (paywall) { - removeDOMElement(paywall); - let article = document.querySelector('div[data-area="body"]'); - if (article) - article.firstChild.before(archiveLink(url)); - } -} - else if (matchDomain('sueddeutsche.de')) { let url = window.location.href; let paywall = document.querySelector('offer-page, div.offer-page'); diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 616be85c..b04b9ee5 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -236,6 +236,11 @@ "block_regex": "\\.tinypass\\.com", "domain": "mailplus.co.uk" }, + "Makorrishon.co.il": { + "allow_cookies": 1, + "domain": "makorrishon.co.il", + "useragent": "googlebot" + }, "Mannheimer-morgen.de": { "allow_cookies": 1, "domain": "mannheimer-morgen.de", @@ -269,6 +274,11 @@ "block_regex": "\\/newbostonpost\\.com\\/.+\\/paywall\\/js\\/main\\.js", "domain": "newbostonpost.com" }, + "Newspicks.com": { + "allow_cookies": 1, + "domain": "newspicks.com", + "useragent": "googlebot" + }, "Nu.nl": { "allow_cookies": 1, "cs_code": "[{\"cond\":\"div.login-wall\",\"rm_elem\":1,\"elems\":[{\"cond\":\"div.authorized-content\",\"rm_class\":\"authorized-content\"}]}]", diff --git a/manifest.json b/manifest.json index b7966f8e..800dd5f3 100644 --- a/manifest.json +++ b/manifest.json @@ -552,7 +552,6 @@ "*://*.spectator.com.au/*", "*://*.spectatorworld.com/*", "*://*.spglobal.com/*", - "*://*.spiegel.de/*", "*://*.sportico.com/*", "*://*.standard.co.uk/*", "*://*.standard.net.au/*", diff --git a/sites.js b/sites.js index d4c8b192..d6a67749 100644 --- a/sites.js +++ b/sites.js @@ -392,10 +392,6 @@ var defaultSites = { domain: "tijd.be", referer: "google" }, - "Der Spiegel (link to archive.is)": { - domain: "spiegel.de", - allow_cookies: 1 - }, "Der Tagesspiegel (link to archive.is/not background/checkpoint)": { domain: "tagesspiegel.de", allow_cookies: 1 @@ -2436,4 +2432,4 @@ init_custom_flex_domains(); var au_news_corp_nofix_domains = ['cairnspost.com.au', 'geelongadvertiser.com.au', 'townsvillebulletin.com.au']; var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be']; var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com', 'repubblica.it']; -var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, 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', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'spiegel.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, it_gedi_nofix_domains);