diff --git a/README.md b/README.md index 5720d29..c1f46d6 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,9 @@ Denver Post (denverpost.com)\ The Economist (economist.com)\ Examiner (examiner.com.au)\ Financial Times (ft.com)\ +Foreign Policy (foreignpolicy.com)\ Glassdoor (glassdoor.com)\ -Haaretz (haaretz.co.il / haaretz.com)\ +Haaretz English (haaretz.com)\ Hacked (hacked.com)\ Hartford Courant (courant.com)\ Harvard Business Review (hbr.org)\ @@ -63,6 +64,5 @@ Wired (wired.com) ### Troubleshooting --If WSJ stops working try removing all wsj.com site cookies.\ -For The Denver Post turn off uBlock.\ -If a site doesn't work try turning off uBlock and refreshing. diff --git a/background.js b/background.js index ee6ab1e..e18fa97 100644 --- a/background.js +++ b/background.js @@ -16,8 +16,8 @@ var defaultSites = { 'The Economist': 'economist.com', 'Examiner': 'examiner.com.au', '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', @@ -111,7 +111,10 @@ const remove_cookies = [ 'examiner.com.au', 'thestar.com', 'centralwesterndaily.com.au', -'theherald.com.au' +'theherald.com.au', +'foreignpolicy.com', +'wsj.com', +'glassdoor.com' ] function setDefaultOptions() { @@ -270,7 +273,6 @@ browser.webRequest.onCompleted.addListener(function(details) { if (cookies[i].firstPartyDomain !== undefined) { cookie.firstPartyDomain = cookies[i].firstPartyDomain; } - console.log("cookie="+cookie.url); browser.cookies.remove(cookie); } }); diff --git a/contentScript.js b/contentScript.js index 9ab1f0e..0f635d8 100644 --- a/contentScript.js +++ b/contentScript.js @@ -20,14 +20,4 @@ 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 f6a29e7..26ec713 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ }, "content_scripts": [ { - "matches": ["*://*.bizjournals.com/*", "*://*.businessinsider.com/*", "*://*.haaretz.co.il/*"], + "matches": ["*://*.bizjournals.com/*", "*://*.businessinsider.com/*"], "js": ["contentScript.js"] } ], @@ -43,5 +43,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.4.2" + "version": "1.4.3" } diff --git a/options.js b/options.js index 320318a..0dab86a 100644 --- a/options.js +++ b/options.js @@ -14,8 +14,8 @@ var defaultSites = { 'The Economist': 'economist.com', 'Examiner': 'examiner.com.au', '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 dc7ad76..27537fa 100644 --- a/popup.html +++ b/popup.html @@ -4,7 +4,7 @@ -
Bypass Paywalls v1.4.2 by Adam +
Bypass Paywalls v1.4.3 by Adam Options