Fix-update Repubblica.it
This commit is contained in:
parent
864296faac
commit
fd9f1bd2bc
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
|||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
Fix-update NyTeknik (images)
|
Fix-update NyTeknik (images)
|
||||||
|
Fix-update Repubblica.it
|
||||||
|
|
||||||
* v2.1.7.0 (2021-04-18)
|
* v2.1.7.0 (2021-04-18)
|
||||||
Add NyTeknik (Sweden)
|
Add NyTeknik (Sweden)
|
||||||
|
@ -1077,11 +1077,12 @@ else if (matchDomain('rep.repubblica.it')) {
|
|||||||
else if (domain = matchDomain(it_repubblica_domains)) {
|
else if (domain = matchDomain(it_repubblica_domains)) {
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
if (!url.includes('/amp/')) {
|
if (!url.includes('/amp/')) {
|
||||||
let premium = document.querySelector('.paywall-adagio');
|
let premium = document.querySelector('.paywall-adagio, #paywall');
|
||||||
removeDOMElement(premium);
|
removeDOMElement(premium);
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
if (premium && (domain === 'lastampa.it'))
|
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||||
window.location.href = url.split('?')[0] + '/amp/';
|
if (premium && amphtml && (['lastampa.it', 'repubblica.it'].includes(domain)))
|
||||||
|
window.location.href = amphtml.href;
|
||||||
let article_body = document.querySelector('div#article-body[style]');
|
let article_body = document.querySelector('div#article-body[style]');
|
||||||
if (article_body)
|
if (article_body)
|
||||||
article_body.removeAttribute('style');
|
article_body.removeAttribute('style');
|
||||||
|
@ -491,5 +491,5 @@
|
|||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://*.wsj.net/*"
|
"*://*.wsj.net/*"
|
||||||
],
|
],
|
||||||
"version": "2.1.7.1"
|
"version": "2.1.7.2"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user