From 6d5a47d34e6abf9144543bd385ced80b67ece164 Mon Sep 17 00:00:00 2001 From: Adam <36013816+iamadamdev@users.noreply.github.com> Date: Fri, 2 Jul 2021 19:20:21 -0700 Subject: [PATCH] Run semistandard style formatter --- src/js/contentScript.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/js/contentScript.js b/src/js/contentScript.js index f54bf3c..b49e8af 100755 --- a/src/js/contentScript.js +++ b/src/js/contentScript.js @@ -663,21 +663,21 @@ if (matchDomain('elmercurio.com')) { } } else if (matchDomain('bostonglobe.com')) { // Remove the portion covering the paywall - const paywall = document.querySelector('div.meter-paywall') + const paywall = document.querySelector('div.meter-paywall'); if (paywall) { - removeDOMElement(paywall) + removeDOMElement(paywall); } // Re-enable scrolling - const body = document.querySelector('body') + const body = document.querySelector('body'); if (body) { - document.body.removeAttribute('style') + document.body.removeAttribute('style'); } // Click the button to reveal the rest of the article - const buttonDiv = document.querySelector('[id="continue_button"]') + const buttonDiv = document.querySelector('[id="continue_button"]'); if (buttonDiv) { - const button = buttonDiv.querySelector('button') + const button = buttonDiv.querySelector('button'); if (button) { - button.click() + button.click(); } } }