2018-07-14 23:24:13 +00:00
|
|
|
window.localStorage.clear();
|
2018-07-07 22:11:09 +00:00
|
|
|
if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
2018-06-30 19:48:40 +00:00
|
|
|
const hiddenStory = document.getElementsByClassName(
|
|
|
|
"js-pre-chunks__story-body"
|
|
|
|
);
|
2018-06-30 19:53:50 +00:00
|
|
|
if (hiddenStory && hiddenStory.length>0) {
|
2018-06-30 19:48:40 +00:00
|
|
|
hiddenStory[0].style.display = "block";
|
|
|
|
}
|
|
|
|
|
2018-06-30 19:53:50 +00:00
|
|
|
const payWallMessage = document.getElementsByClassName(
|
|
|
|
"chunk chunk--flex@lg chunk--paywall"
|
|
|
|
);
|
|
|
|
if (payWallMessage && payWallMessage.length>0 ) {
|
2018-06-30 19:48:40 +00:00
|
|
|
payWallMessage[0].style.display = "none";
|
|
|
|
}
|
2018-07-07 22:11:09 +00: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-12-02 04:33:21 +00:00
|
|
|
} 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';
|
|
|
|
}
|
2018-12-06 21:23:04 +00:00
|
|
|
} else if (location.hostname.endsWith('rep.repubblica.it')) {
|
|
|
|
if (location.href.includes("/pwa/")) {
|
|
|
|
location.href = location.href.replace("/pwa/", "/ws/detail/");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (location.href.includes("/ws/detail/")) {
|
2019-01-25 15:29:06 +00:00
|
|
|
const paywall = document.querySelector('.paywall[subscriptions-section="content"]');
|
2018-12-11 11:02:43 +00:00
|
|
|
if (paywall) {
|
2019-01-25 15:29:06 +00:00
|
|
|
paywall.removeAttribute('subscriptions-section');
|
|
|
|
const preview = document.querySelector('div[subscriptions-section="content-not-granted"]');
|
|
|
|
if (preview) {
|
|
|
|
preview.remove();
|
|
|
|
}
|
2018-12-06 21:23:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|