Added foreignpolicy.com, removed haaretz.co.il, fixed wsj.com

This commit is contained in:
ghost 2018-11-11 15:42:17 -08:00
parent e66820b30c
commit 068cad4460
6 changed files with 11 additions and 19 deletions

View File

@ -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.

View File

@ -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);
}
});

View File

@ -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';
}
}

View File

@ -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"
}

View File

@ -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',

View File

@ -4,7 +4,7 @@
<meta charset="utf-8">
</head>
<body>
<div style="width:230px;">Bypass Paywalls v1.4.2 by Adam
<div style="width:230px;">Bypass Paywalls v1.4.3 by Adam
<a href="options.html">Options</a></div>
</body>
</html>