Fix Aftonbladet.se (link to archive.is)

This commit is contained in:
magnolia1234 2023-01-05 08:34:21 +01:00
parent 79a7e47925
commit cacd007a93
2 changed files with 13 additions and 1 deletions

View file

@ -9,6 +9,7 @@ Add PhiloMag.de
Add ZeroHedge
Remove Entrepreneur (fix obsolete)
Remove The-Village.ru (fix obsolete)
Fix Aftonbladet.se (link to archive.is)
Fix Boston Globe (css)
Fix Substack (split content)
Fix Telegraaf.nl

View file

@ -861,7 +861,18 @@ else
} else if (window.location.hostname.match(/\.(dk|fi|se)$/)) {//denmark/finland/sweden
if (matchDomain('etc.se')) {
if (matchDomain(['aftonbladet.se'])) {
let url = window.location.href;
let paywall = document.querySelector('div.paywall');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector('article');
if (article)
article.firstChild.before(archiveLink(url));
}
}
else if (matchDomain('etc.se')) {
let paywall = document.querySelector('div.paywalled');
if (paywall) {
paywall.removeAttribute('class');