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

merge-requests/1/head
ghost 6 years ago
parent c18b310ad2
commit 6f3e75a706

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

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

@ -20,4 +20,13 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
while (paywall.length > 0) { while (paywall.length > 0) {
paywall[0].parentNode.removeChild(paywall[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';
}
} }

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

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

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
</head> </head>
<body> <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> <a href="options.html">Options</a></div>
</body> </body>
</html> </html>

Loading…
Cancel
Save