mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:37:47 +01:00
Fix-update Repubblica.it
This commit is contained in:
parent
871643bb79
commit
dbe8ff0649
3 changed files with 6 additions and 4 deletions
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
|
||||
Post-release
|
||||
Fix-update NyTeknik (images)
|
||||
Fix-update Repubblica.it
|
||||
|
||||
* v2.1.7.0 (2021-04-18)
|
||||
Add NyTeknik (Sweden)
|
||||
|
|
|
@ -1077,11 +1077,12 @@ else if (matchDomain('rep.repubblica.it')) {
|
|||
else if (domain = matchDomain(it_repubblica_domains)) {
|
||||
let url = window.location.href;
|
||||
if (!url.includes('/amp/')) {
|
||||
let premium = document.querySelector('.paywall-adagio');
|
||||
let premium = document.querySelector('.paywall-adagio, #paywall');
|
||||
removeDOMElement(premium);
|
||||
window.setTimeout(function () {
|
||||
if (premium && (domain === 'lastampa.it'))
|
||||
window.location.href = url.split('?')[0] + '/amp/';
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (premium && amphtml && (['lastampa.it', 'repubblica.it'].includes(domain)))
|
||||
window.location.href = amphtml.href;
|
||||
let article_body = document.querySelector('div#article-body[style]');
|
||||
if (article_body)
|
||||
article_body.removeAttribute('style');
|
||||
|
|
|
@ -503,5 +503,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.1.7.1"
|
||||
"version": "2.1.7.2"
|
||||
}
|
Loading…
Reference in a new issue