mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Fix Repubblica.it (podcasts)
This commit is contained in:
parent
3014f34c5d
commit
b79a8585d6
@ -605,6 +605,8 @@ function add_grouped_sites(init_rules) {
|
||||
}
|
||||
for (let domain of it_repubblica_domains) {
|
||||
allow_cookies.push(domain);
|
||||
if (['ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain))
|
||||
use_google_bot.push(domain);
|
||||
blockedRegexes[domain] = /(scripts\.repubblica\.it\/pw\/pw\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|user-notification)-.+\.js)/;
|
||||
}
|
||||
for (let domain of nl_pg_domains) {
|
||||
|
@ -5,6 +5,7 @@ Post-release
|
||||
Add Forbes
|
||||
Add Law360 (free articles only)
|
||||
Fix Bloomberg (graphics)
|
||||
Fix Repubblica.it (podcasts)
|
||||
|
||||
* v2.3.4.1 (2021-08-23)
|
||||
Fix group Crain Communications
|
||||
|
@ -1079,17 +1079,6 @@ else if (matchDomain('rep.repubblica.it')) {
|
||||
else if (domain = matchDomain(it_repubblica_domains)) {
|
||||
let url = window.location.href.split('?')[0];
|
||||
if (!url.match(/\amp(\/)?$/)) {
|
||||
let premium = document.querySelector('.paywall-adagio, #paywall');
|
||||
if (premium) {
|
||||
removeDOMElement(premium);
|
||||
if (['ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain)) {
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (!amphtml)
|
||||
amphtml = {href: (url.split('?')[0] + '/amp').replace('//amp', '/amp')};
|
||||
if (amphtml)
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
}
|
||||
if (!['ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain)) {
|
||||
window.setTimeout(function () {
|
||||
let article_body = document.querySelector('div#article-body[style]');
|
||||
|
@ -556,5 +556,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.3.4.4"
|
||||
"version": "2.3.4.5"
|
||||
}
|
Loading…
Reference in New Issue
Block a user