diff --git a/README.md b/README.md index 31f3774..91756b2 100644 --- a/README.md +++ b/README.md @@ -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)\ diff --git a/background.js b/background.js index e18fa97..687924c 100644 --- a/background.js +++ b/background.js @@ -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', diff --git a/contentScript.js b/contentScript.js index 0f635d8..e053308 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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'; + } } \ No newline at end of file diff --git a/manifest.json b/manifest.json index 26ec713..26f0d24 100644 --- a/manifest.json +++ b/manifest.json @@ -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" } diff --git a/options.js b/options.js index 0dab86a..82ec200 100644 --- a/options.js +++ b/options.js @@ -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', diff --git a/popup.html b/popup.html index 27537fa..9a8e403 100644 --- a/popup.html +++ b/popup.html @@ -4,7 +4,7 @@ -
Bypass Paywalls v1.4.3 by Adam +
Bypass Paywalls v1.4.4 by Adam Options