Add repubblica.it
parent
251227116e
commit
0740966a2c
|
@ -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)\
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue