mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-02 15:40:13 +00:00
Added foreignpolicy.com, removed haaretz.co.il, fixed wsj.com
This commit is contained in:
parent
e66820b30c
commit
068cad4460
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
@ -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';
|
||||
}
|
||||
}
|
@ -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"
|
||||
}
|
||||
|
@ -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',
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user