Add Spiegel.de (link to archive.is)

This commit is contained in:
magnolia1234 2022-06-30 19:51:51 +02:00
parent 4d5266112c
commit 0eacc5bfaa
5 changed files with 19 additions and 1 deletions

View file

@ -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) -

View file

@ -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)

View file

@ -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/')) {

View file

@ -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"
}

View file

@ -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,