mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 06:03:40 +02:00
Re-enable haaretz.co.il (may work for some people)
This commit is contained in:
parent
c18b310ad2
commit
6f3e75a706
6 changed files with 15 additions and 4 deletions
|
@ -20,7 +20,7 @@ Examiner (examiner.com.au)\
|
|||
Financial Times (ft.com)\
|
||||
Foreign Policy (foreignpolicy.com)\
|
||||
Glassdoor (glassdoor.com)\
|
||||
Haaretz English (haaretz.com)\
|
||||
Haaretz (haaretz.co.il / haaretz.com)\
|
||||
Hacked (hacked.com)\
|
||||
Hartford Courant (courant.com)\
|
||||
Harvard Business Review (hbr.org)\
|
||||
|
|
|
@ -18,6 +18,7 @@ var defaultSites = {
|
|||
'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',
|
||||
|
|
|
@ -20,4 +20,13 @@ 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/*"],
|
||||
"matches": ["*://*.bizjournals.com/*", "*://*.businessinsider.com/*", "*://*.haaretz.co.il/*"],
|
||||
"js": ["contentScript.js"]
|
||||
}
|
||||
],
|
||||
|
@ -43,5 +43,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.4.3"
|
||||
"version": "1.4.4"
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ var defaultSites = {
|
|||
'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.3 by Adam
|
||||
<div style="width:230px;">Bypass Paywalls v1.4.4 by Adam
|
||||
<a href="options.html">Options</a></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue