Re-enable haaretz.co.il (may work for some people)

master
Adam 2018-12-01 20:33:21 -08:00
parent aeea2cef24
commit 69b006d783
6 changed files with 15 additions and 4 deletions

View File

@ -20,7 +20,7 @@ Examiner (examiner.com.au)\
Financial Times (ft.com)\
Foreign Policy (foreignpolicy.com)\
Glassdoor (glassdoor.com)\
Haaretz English (haaretz.com)\
Haaretz (haaretz.co.il / haaretz.com)\
Hacked (hacked.com)\
Hartford Courant (courant.com)\
Harvard Business Review (hbr.org)\

View File

@ -18,6 +18,7 @@ var defaultSites = {
'Financial Times': 'ft.com',
'Foreign Policy': 'foreignpolicy.com',
'Glassdoor': 'glassdoor.com',
'Haaretz': 'haaretz.co.il',
'Haaretz English': 'haaretz.com',
'Hacked': 'hacked.com',
'Hartford Courant': 'courant.com',

View File

@ -20,4 +20,13 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
while (paywall.length > 0) {
paywall[0].parentNode.removeChild(paywall[0]);
}
} else if (location.hostname.endsWith('haaretz.co.il')) {
const html = document.getElementsByTagName('html');
if (html && html.length > 0) {
html[0].style['overflow-y'] = 'auto';
}
const msg = document.getElementById('article-wrapper');
if (msg) {
msg.style['display'] = 'none';
}
}

View File

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

View File

@ -16,6 +16,7 @@ var defaultSites = {
'Financial Times': 'ft.com',
'Foreign Policy': 'foreignpolicy.com',
'Glassdoor': 'glassdoor.com',
'Haaretz': 'haaretz.co.il',
'Haaretz English': 'haaretz.com',
'Hacked': 'hacked.com',
'Hartford Courant': 'courant.com',

View File

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