Fix Advance Local (no amp)

merge-requests/14/head
magnolia1234 1 year ago
parent f014deeb29
commit c9a8dd155a

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Fix Advance Local (no amp)
* v3.1.7.3 (2023-05-08)
Remove Medienhaus Aachen (fix obsolete)

@ -2924,6 +2924,8 @@ if (matchDomain(usa_adv_local_domains)) {
} else {
let paywall = document.querySelector('.paywall');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (!amphtml)
amphtml = {href: window.location.pathname + '?outputType=amp'};
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.1.7.3"
"version": "3.1.7.4"
}

@ -754,5 +754,5 @@
"*://html.onlineviewer.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.1.7.3"
"version": "3.1.7.4"
}

Loading…
Cancel
Save