Fix Repubblica sites (no amp)

This commit is contained in:
magnolia1234 2021-12-07 17:30:30 +01:00
parent 09714190f2
commit 5d46a59719
2 changed files with 1 additions and 2 deletions

View File

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

View File

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