Fix Advance Local (no amp)

This commit is contained in:
magnolia1234 2023-05-09 12:36:40 +02:00
parent f014deeb29
commit c9a8dd155a
4 changed files with 5 additions and 2 deletions

View file

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

View file

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

View file

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

View file

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