Fix repubblica.it after page reload
This commit is contained in:
parent
aa691ac6c9
commit
e611f56153
@ -35,9 +35,9 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (location.href.includes("/ws/detail/")) {
|
if (location.href.includes("/ws/detail/")) {
|
||||||
const paywall = document.getElementsByClassName('paywall');
|
const paywall = document.querySelector('.paywall[amp-access-hide]');
|
||||||
if (paywall && paywall.length > 0) {
|
if (paywall) {
|
||||||
paywall[0].toggleAttribute('amp-access-hide');
|
paywall.removeAttribute('amp-access-hide');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user