Fix Repubblica.it (podcasts)

This commit is contained in:
magnolia1234 2021-08-29 08:38:59 +02:00
parent 3014f34c5d
commit b79a8585d6
4 changed files with 4 additions and 12 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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]');

View File

@ -556,5 +556,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.3.4.4"
"version": "2.3.4.5"
}