From 0eacc5bfaa9f5c7a7a9ec1bceec9ceccbadfeaf9 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 30 Jun 2022 19:51:51 +0200 Subject: [PATCH] Add Spiegel.de (link to archive.is) --- README.md | 1 + changelog.txt | 1 + contentScript.js | 11 +++++++++++ manifest.json | 3 ++- sites.js | 4 ++++ 5 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 75195c8..d4e748d 100644 --- a/README.md +++ b/README.md @@ -475,6 +475,7 @@ Grouped in options:\ [Badische Neueste Nachrichten](https://www.bnn.de) - [Berliner Zeitung](https://www.berliner-zeitung.de) - [Cicero](https://www.cicero.de) - +[Der Spiegel (link to archive.today)](https://www.spiegel.de) - [Die Rheinpfalz](https://www.rheinpfalz.de) - [Die Zeit](https://www.zeit.de) - [Frankfurter Allgemeine Zeitung](https://www.faz.net) - diff --git a/changelog.txt b/changelog.txt index a70c2c3..7817b35 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add BQ Prime (former Bloomberg Quint) +Add Spiegel.de (link to archive.is) Remove Deutsche Wirtschafts Nachrichten (fix obsolete) Fix Automobilwoche Fix Financial Times (cookie-banner) diff --git a/contentScript.js b/contentScript.js index 6d0ab00..63b532f 100644 --- a/contentScript.js +++ b/contentScript.js @@ -660,6 +660,17 @@ 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.insertBefore(archiveLink(url), article.firstChild); + } +} + else if (matchDomain(['westfalen-blatt.de', 'wn.de', 'muensterschezeitung.de'])) { let url = window.location.href; if (url.includes('/amp/')) { diff --git a/manifest.json b/manifest.json index 79787e3..a337901 100644 --- a/manifest.json +++ b/manifest.json @@ -515,6 +515,7 @@ "*://*.spectator.com.au/*", "*://*.spectatorworld.com/*", "*://*.spglobal.com/*", + "*://*.spiegel.de/*", "*://*.sportico.com/*", "*://*.standard.net.au/*", "*://*.star-telegram.com/*", @@ -686,5 +687,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.7.3.4" + "version": "2.7.3.5" } diff --git a/sites.js b/sites.js index 80d7d96..89e3354 100644 --- a/sites.js +++ b/sites.js @@ -332,6 +332,10 @@ var defaultSites = { domain: "demorgen.be", group_rule: "###_gr_nl_pg_domains" }, + "Der Spiegel": { + domain: "spiegel.de", + allow_cookies: 1 + }, "Diario Financiero": { domain: "df.cl", allow_cookies: 1,