Add repubblica.it

master
Davide Saurino 2018-12-06 22:23:04 +01:00
parent 3f06b0ce2f
commit 5e58eba3cb
4 changed files with 15 additions and 1 deletions

View File

@ -26,6 +26,7 @@ Hartford Courant (courant.com)\
Harvard Business Review (hbr.org)\
Het Financieele Dagblad (fd.nl)\
Inc.com (inc.com)\
La Repubblica (repubblica.it)\
Le Temps (letemps.ch)\
Los Angeles Times (latimes.com)\
Medium (medium.com)\

View File

@ -25,6 +25,7 @@ var defaultSites = {
'Harvard Business Review': 'hbr.org',
'Het Financieele Dagblad': 'fd.nl',
'Inc.com': 'inc.com',
'La Repubblica': 'repubblica.it',
'Le Temps': 'letemps.ch',
'Los Angeles Times': 'latimes.com',
'Medium': 'medium.com',

View File

@ -29,4 +29,15 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
if (msg) {
msg.style['display'] = 'none';
}
}
} else if (location.hostname.endsWith('rep.repubblica.it')) {
if (location.href.includes("/pwa/")) {
location.href = location.href.replace("/pwa/", "/ws/detail/");
}
if (location.href.includes("/ws/detail/")) {
const paywall = document.getElementsByClassName('paywall');
if (paywall && paywall.length > 0) {
paywall[0].toggleAttribute('amp-access-hide');
}
}
}

View File

@ -23,6 +23,7 @@ var defaultSites = {
'Harvard Business Review': 'hbr.org',
'Het Financieele Dagblad': 'fd.nl',
'Inc.com': 'inc.com',
'La Repubblica': 'repubblica.it',
'Le Temps': 'letemps.ch',
'Los Angeles Times': 'latimes.com',
'Medium': 'medium.com',