From 4e1d0e0a432df5016b25af90598128db73bfae0f Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 17 Oct 2020 20:47:42 +0200 Subject: [PATCH] Fix-update Toronto Star (hide rightrail) --- contentScript.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contentScript.js b/contentScript.js index 57946b4..55b6477 100644 --- a/contentScript.js +++ b/contentScript.js @@ -526,8 +526,10 @@ else if (matchDomain("techinasia.com")) { else if (matchDomain("thestar.com")) { let meter_banner = document.querySelector('.c-article-meter-banner'); + removeDOMElement(meter_banner); let rightrail = document.querySelector('.c-article-body__rightrail'); - removeDOMElement(meter_banner, rightrail); + if (rightrail) + rightrail.setAttribute('style', 'display:none;'); let paywall = document.querySelector('.basic-paywall-new'); if (paywall) { removeDOMElement(paywall);