Merge pull request #90 from sub/fix/repubblica-reload

Fix repubblica.it after page reload
merge-requests/1/head
ghost 6 years ago
commit ad38f201ca

@ -63,6 +63,11 @@ Towards Data Science (towardsdatascience.com)\
Vanity Fair (vanityfair.com)\
Wired (wired.com)
### New site requests:
1. Visit an article on the site you want to bypass the paywall for and copy the article title.
2. Open up a new Private window (Ctrl+Shift+P) and paste the article title into Google.
3. Click on the same article from the Google search results page. If it loads without a paywall you can [submit a request](https://github.com/iamadamdev/bypass-paywalls-firefox/issues/new) to add the site, otherwise my extension cannot bypass it either.
### Troubleshooting
-For The Denver Post turn off uBlock.\

@ -35,9 +35,9 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
}
if (location.href.includes("/ws/detail/")) {
const paywall = document.getElementsByClassName('paywall');
if (paywall && paywall.length > 0) {
paywall[0].toggleAttribute('amp-access-hide');
const paywall = document.querySelector('.paywall[amp-access-hide]');
if (paywall) {
paywall.removeAttribute('amp-access-hide');
}
}
}

Loading…
Cancel
Save