mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-05-01 23:04:25 +02:00
15 lines
415 B
JavaScript
15 lines
415 B
JavaScript
window.localStorage.clear();
|
|
|
|
if (location.hostname.endsWith('rep.repubblica.it')) {
|
|
if (location.href.includes('/pwa/')) {
|
|
location.href = location.href.replace('/pwa/', '/ws/detail/');
|
|
}
|
|
|
|
if (location.href.includes('/ws/detail/')) {
|
|
const paywall = document.getElementsByClassName('paywall');
|
|
if (paywall && paywall.length > 0) {
|
|
paywall[0].toggleAttribute('amp-access-hide');
|
|
}
|
|
}
|
|
}
|