Fix Aftonbladet.se (link to archive.is)

merge-requests/10/head
magnolia1234 2 years ago
parent 79a7e47925
commit cacd007a93

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

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

Loading…
Cancel
Save