Formatting

This commit is contained in:
Adam 2020-09-14 20:46:32 -07:00
parent acf454c5b7
commit 7dbd4201a9

View File

@ -77,7 +77,7 @@ if (matchDomain('elmercurio.com')) {
const paywall = document.querySelector('.article__component.article__component--paywall-module-notification'); const paywall = document.querySelector('.article__component.article__component--paywall-module-notification');
removeDOMElement(paywall); removeDOMElement(paywall);
} else if (matchDomain('washingtonpost.com')) { } else if (matchDomain('washingtonpost.com')) {
//Remove all elements with the id contains 'paywall' // Remove all elements with the id contains 'paywall'
document.querySelectorAll('div[data-qa="paywall"]').forEach(function (el) { document.querySelectorAll('div[data-qa="paywall"]').forEach(function (el) {
removeDOMElement(el); removeDOMElement(el);
}); });
@ -409,7 +409,7 @@ if (matchDomain('elmercurio.com')) {
document.querySelectorAll('div.ReactModalPortal').forEach(function (el) { document.querySelectorAll('div.ReactModalPortal').forEach(function (el) {
removeDOMElement(el); removeDOMElement(el);
}); });
//Enable Scroll. Reveal Hiddlen Paragraph // Enable Scroll. Reveal Hiddlen Paragraph
document.getElementsByTagName('body')[0].removeAttribute('class'); document.getElementsByTagName('body')[0].removeAttribute('class');
} else if (matchDomain('seattletimes.com')) { } else if (matchDomain('seattletimes.com')) {
window.setTimeout(function () { window.setTimeout(function () {
@ -418,7 +418,7 @@ if (matchDomain('elmercurio.com')) {
removeDOMElement(el); removeDOMElement(el);
}); });
// Remove Blurred Style from all matching Divs // Remove Blurred Style from all matching Divs
document.getElementById("container").removeAttribute("style"); document.getElementById('container').removeAttribute('style');
document.querySelectorAll('div[style~="filter"]').forEach(function (el) { document.querySelectorAll('div[style~="filter"]').forEach(function (el) {
el.removeAttribute('style'); el.removeAttribute('style');
}); });
@ -428,12 +428,12 @@ if (matchDomain('elmercurio.com')) {
el.removeAttribute('class'); el.removeAttribute('class');
}); });
}, 2000); // Delay (in milliseconds) }, 2000); // Delay (in milliseconds)
} else if (matchDomain("theatlantic.com")) { } else if (matchDomain('theatlantic.com')) {
//Remove all nudge elements // Remove all nudge elements
document.querySelectorAll('div[class*="c-nudge"]').forEach(function (el) { document.querySelectorAll('div[class*="c-nudge"]').forEach(function (el) {
removeDOMElement(el); removeDOMElement(el);
}); });
//Remove all FancyBox ads // Remove all FancyBox ads
document.querySelectorAll('div[class*="fancybox"]').forEach(function (el) { document.querySelectorAll('div[class*="fancybox"]').forEach(function (el) {
removeDOMElement(el); removeDOMElement(el);
}); });