Add TagesAnzeiger.ch (link to archive.is)

This commit is contained in:
magnolia1234 2023-02-14 18:05:47 +01:00
parent 670d2c2deb
commit ed5fb70cc2
5 changed files with 19 additions and 0 deletions

View file

@ -722,6 +722,7 @@ Grouped in options:\
[Beobachter](https://www.beobachter.ch) -
[Handelszeitung](https://www.handelszeitung.ch) -
[Neue Zürcher Zeitung (+ regional/CH Media; opt-in to custom sites)](https://www.nzz.ch) -
[Tages-Anzeiger (link to archive.is)](https://www.tagesanzeiger.ch) -
[The Market](https://themarket.ch)
##### Australia/New Zealand

View file

@ -4,6 +4,7 @@ Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/release
Post-release
Add DHnet.be
Add TagesAnzeiger.ch (link to archive.is)
Remove Finance.si (fix obsolete)
Update block general paywall script (FewCents)

View file

@ -873,6 +873,17 @@ else if (matchDomain('sueddeutsche.de')) {
}
}
else if (matchDomain('tagesanzeiger.ch')) {
let url = window.location.href;
let paywall = document.querySelector('div#piano-premium > div');
if (paywall) {
removeDOMElement(paywall.parentNode);
let article = document.querySelector('article p');
if (article)
article.firstChild.before(archiveLink(url));
}
}
else if (matchDomain('tagesspiegel.de')) {
let url = window.location.href;
let paywall = document.querySelector('div.article--paid > div');

View file

@ -578,6 +578,7 @@
"*://*.suomensotilas.fi/*",
"*://*.svz.de/*",
"*://*.syracuse.com/*",
"*://*.tagesanzeiger.ch/*",
"*://*.tagesspiegel.de/*",
"*://*.tampabay.com/*",
"*://*.techinasia.com/*",

View file

@ -1747,6 +1747,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\/suomensotilas\.fi\/wp-content\/plugins\/epflpw\/js\/pw\.js/
},
"TagesAnzeiger.ch (link to archive.is)": {
domain: "tagesanzeiger.ch",
allow_cookies: 1,
block_regex: /\.piano\.io\/xbuilder\/experience\/execute/
},
"Tampa Bay Times": {
domain: "tampabay.com",
allow_cookies: 1,