mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 08:07:47 +01:00
23 lines
No EOL
715 B
JavaScript
23 lines
No EOL
715 B
JavaScript
window.localStorage.clear();
|
|
if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|
const hiddenStory = document.getElementsByClassName(
|
|
"js-pre-chunks__story-body"
|
|
);
|
|
if (hiddenStory && hiddenStory.length>0) {
|
|
hiddenStory[0].style.display = "block";
|
|
}
|
|
|
|
const payWallMessage = document.getElementsByClassName(
|
|
"chunk chunk--flex@lg chunk--paywall"
|
|
);
|
|
if (payWallMessage && payWallMessage.length>0 ) {
|
|
payWallMessage[0].style.display = "none";
|
|
}
|
|
} 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]);
|
|
}
|
|
} |