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(); } } }