diff --git a/changelog.txt b/changelog.txt index 6121a8c..fb8e6d1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,7 @@ Updates-- -2018-07-14 v1.3.2: Add back clearing of localStorage in contentScript.js (fixes wapo.com) +2018-07-14 v1.3.3: Add back clearing of localStorage in contentScript.js (fixes wapo.com for U.S. users) +2018-07-08 v1.3.2: Fixed Haaretz (haaretz.co.il) 2018-07-07 v1.3.1: Added Business Insider (businessinsider.com) 2018-07-04 v1.3.0: Added The Denver Post (denverpost.com, note: need to turn off uBlock for this site), added Hacked (hacked.com) 2018-06-20 v1.2.10: Added The Business Journals (bizjournals.com) diff --git a/contentScript.js b/contentScript.js index 4e24b34..9ab1f0e 100644 --- a/contentScript.js +++ b/contentScript.js @@ -20,4 +20,14 @@ 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 7b03184..fa8fa6e 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.3.2" + "version": "1.3.3" } diff --git a/popup.html b/popup.html index 311656c..61b0fb9 100644 --- a/popup.html +++ b/popup.html @@ -1,7 +1,7 @@ -
Bypass Paywalls v1.3.2 by Adam +
Bypass Paywalls v1.3.3 by Adam Options