Add repubblica.it

master
Davide Saurino 2018-12-07 13:43:16 +01:00
parent 251227116e
commit 0740966a2c
4 changed files with 16 additions and 0 deletions

View File

@ -33,6 +33,7 @@ Haaretz (haaretz.co.il / haaretz.com)\
Hartford Courant (courant.com)\
Harvard Business Review (hbr.org)\
Inc.com (inc.com)\
La Repubblica (repubblica.it)\
Le Temps (letemps.ch)\
Los Angeles Times (latimes.com)\
Medium (medium.com)\

View File

@ -21,6 +21,7 @@ var defaultSites = {
'Hartford Courant': 'courant.com',
'Harvard Business Review': 'hbr.org',
'Inc.com': 'inc.com',
'La Repubblica': 'repubblica.it',
'Le Temps': 'letemps.ch',
'Los Angeles Times': 'latimes.com',
'Medium': 'medium.com',

View File

@ -1 +1,14 @@
window.localStorage.clear();
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

@ -19,6 +19,7 @@ var defaultSites = {
'Hartford Courant': 'courant.com',
'Harvard Business Review': 'hbr.org',
'Inc.com': 'inc.com',
'La Repubblica': 'repubblica.it',
'Le Temps': 'letemps.ch',
'Los Angeles Times': 'latimes.com',
'Medium': 'medium.com',