Merge pull request #89 from sub/la-repubblica

Add repubblica.it
This commit is contained in:
ghost 2018-12-08 16:51:03 -08:00
commit 889f062b89
6 changed files with 18 additions and 4 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

@ -4,7 +4,7 @@
},
"content_scripts": [
{
"matches": ["*://*.bizjournals.com/*", "*://*.businessinsider.com/*", "*://*.haaretz.co.il/*"],
"matches": ["*://*.bizjournals.com/*", "*://*.businessinsider.com/*", "*://*.haaretz.co.il/*", "*://*.repubblica.it/*"],
"js": ["contentScript.js"]
}
],
@ -43,5 +43,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.4.4"
"version": "1.4.5"
}

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',

View File

@ -4,7 +4,7 @@
<meta charset="utf-8">
</head>
<body>
<div style="width:230px;">Bypass Paywalls v1.4.4 by Adam
<div style="width:230px;">Bypass Paywalls v1.4.5 by Adam
<a href="options.html">Options</a></div>
</body>
</html>