bypass-paywalls-firefox-clean/contentScript.js
2018-06-30 15:53:50 -04:00

15 lines
455 B
JavaScript

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";
}
}