mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:24:16 +01:00
Fix repubblica.it after website update
This commit is contained in:
parent
06190853de
commit
9c81c87a93
1 changed files with 6 additions and 2 deletions
|
@ -35,9 +35,13 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location.href.includes("/ws/detail/")) {
|
if (location.href.includes("/ws/detail/")) {
|
||||||
const paywall = document.querySelector('.paywall[amp-access-hide]');
|
const paywall = document.querySelector('.paywall[subscriptions-section="content"]');
|
||||||
if (paywall) {
|
if (paywall) {
|
||||||
paywall.removeAttribute('amp-access-hide');
|
paywall.removeAttribute('subscriptions-section');
|
||||||
|
const preview = document.querySelector('div[subscriptions-section="content-not-granted"]');
|
||||||
|
if (preview) {
|
||||||
|
preview.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue