2018-07-15 01:24:13 +02:00
|
|
|
window.localStorage.clear();
|
2018-07-08 00:11:09 +02:00
|
|
|
if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
2018-06-30 21:48:40 +02:00
|
|
|
const hiddenStory = document.getElementsByClassName(
|
|
|
|
"js-pre-chunks__story-body"
|
|
|
|
);
|
2018-06-30 21:53:50 +02:00
|
|
|
if (hiddenStory && hiddenStory.length>0) {
|
2018-06-30 21:48:40 +02:00
|
|
|
hiddenStory[0].style.display = "block";
|
|
|
|
}
|
|
|
|
|
2018-06-30 21:53:50 +02:00
|
|
|
const payWallMessage = document.getElementsByClassName(
|
|
|
|
"chunk chunk--flex@lg chunk--paywall"
|
|
|
|
);
|
|
|
|
if (payWallMessage && payWallMessage.length>0 ) {
|
2018-06-30 21:48:40 +02:00
|
|
|
payWallMessage[0].style.display = "none";
|
|
|
|
}
|
2018-07-08 00:11:09 +02:00
|
|
|
} else if (window.location.href.indexOf("businessinsider.com") !== -1) {
|
|
|
|
const paywall = document.getElementsByClassName(
|
|
|
|
"tp-modal"
|
|
|
|
);
|
|
|
|
while (paywall.length > 0) {
|
|
|
|
paywall[0].parentNode.removeChild(paywall[0]);
|
|
|
|
}
|
2018-07-16 06:18:32 +02:00
|
|
|
} else if (location.hostname.endsWith('haaretz.co.il')) {
|
2018-07-08 03:35:05 +02:00
|
|
|
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';
|
|
|
|
}
|
|
|
|
}
|