mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:27:48 +01:00
Fix Aftonbladet.se (link to archive.is)
This commit is contained in:
parent
79a7e47925
commit
cacd007a93
2 changed files with 13 additions and 1 deletions
|
@ -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…
Reference in a new issue