Fix Repubblica sites (no amp)

merge-requests/3/head
magnolia1234 3 years ago
parent ba1e74ec9d
commit 6357402caf

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix Repubblica sites (no amp)
* v2.4.6.0 (2021-12-05)
Add Artnet

@ -1128,8 +1128,6 @@ else if (domain = matchDomain(it_repubblica_domains)) {
removeDOMElement(premium);
if (!url.includes('/podcast/')) {
let amphtml = document.querySelector('link[rel="amphtml"]');
if (!amphtml)
amphtml = {href: (url.split('?')[0] + '/amp').replace('//amp', '/amp')};
if (amphtml)
window.location.href = amphtml.href;
}

Loading…
Cancel
Save