From 2082e40cd1653801d94a430b1613184dffc987bc Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 17 Sep 2020 20:40:06 +0200 Subject: [PATCH] Fix-update MIT Technology Review (overlay) --- contentScript.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contentScript.js b/contentScript.js index 7483056..d958d9a 100644 --- a/contentScript.js +++ b/contentScript.js @@ -375,6 +375,12 @@ else if (matchDomain("technologyreview.com")) { let overlay = document.querySelector('div[class*="overlayFooter__wrapper"]'); if (overlay) overlay.setAttribute('style', 'display:none'); + let content_body_hidden = document.querySelector('div[class*="contentBody__contentHidden"]'); + if (content_body_hidden) + removeClassesByPrefix(content_body_hidden, 'contentBody__contentHidden'); + let content_body_overlay = document.querySelector('div[class*="contentBody__overlay"]'); + if (content_body_overlay) + content_body_overlay.removeAttribute('class'); }, 500); }