Fix previous merges
parent
4c28bd38ef
commit
efa8e0f9fe
|
@ -3,14 +3,14 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|||
const hiddenStory = document.getElementsByClassName(
|
||||
"js-pre-chunks__story-body"
|
||||
);
|
||||
if (hiddenStory && hiddenStory.length>0) {
|
||||
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 ) {
|
||||
if (payWallMessage && payWallMessage.length > 0) {
|
||||
payWallMessage[0].style.display = "none";
|
||||
}
|
||||
} else if (window.location.href.indexOf("businessinsider.com") !== -1) {
|
||||
|
@ -69,7 +69,7 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|||
}
|
||||
} else if (window.location.href.indexOf("wsj.com") !== -1) {
|
||||
if (location.href.includes('/articles/')) {
|
||||
setTimeout(function() {
|
||||
setTimeout(function () {
|
||||
document.querySelector('.close-btn').click();
|
||||
}, 2000);
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|||
if (location.href.includes('/gdpr-consent/')) {
|
||||
document.querySelector('.gdpr-consent-container .continue-btn.button.free').click();
|
||||
|
||||
setTimeout(function (){
|
||||
setTimeout(function () {
|
||||
|
||||
const gdprcheckbox = document.querySelector('.gdpr-consent-container .consent-page:not(.hide) #agree');
|
||||
if (gdprcheckbox) {
|
||||
|
@ -107,8 +107,14 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|||
});
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("bloomberg.com") !== -1) {
|
||||
const paywall = document.getElementById('paywall-banner');
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
if (element) element.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,12 +11,12 @@
|
|||
"*://*.nzherald.co.nz/*",
|
||||
"*://*.repubblica.it/*",
|
||||
"*://*.washingtonpost.com/*",
|
||||
"*://*.wsj.com/*",
|
||||
"*://*.ed.nl/*",
|
||||
"*://*.parool.nl/*",
|
||||
"*://*.telegraaf.nl/*",
|
||||
"*://*.trouw.nl/*",
|
||||
"*://*.volkskrant.nl/*"
|
||||
"*://*.volkskrant.nl/*",
|
||||
"*://*.bloomberg.com/*"
|
||||
],
|
||||
"js": ["contentScript.js"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue