diff --git a/changelog.txt b/changelog.txt index 6ae1b94..a450af1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,6 @@ Updates-- +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 4f334fc..027c2d2 100644 --- a/contentScript.js +++ b/contentScript.js @@ -20,3 +20,15 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) { paywall[0].parentNode.removeChild(paywall[0]); } } + +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 cb62b25..9136e6e 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.1" + "version": "1.3.2" } diff --git a/popup.html b/popup.html index 44d993f..311656c 100644 --- a/popup.html +++ b/popup.html @@ -1,7 +1,7 @@ -
Bypass Paywalls v1.3.1 by Adam +
Bypass Paywalls v1.3.2 by Adam Options