Fix Repubblica sites (no amp)
This commit is contained in:
parent
09714190f2
commit
5d46a59719
@ -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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user