Fix-update Toronto Star (hide rightrail)

This commit is contained in:
magnolia1234 2020-10-17 20:47:42 +02:00
parent 2afca3058f
commit 4e1d0e0a43

View file

@ -526,8 +526,10 @@ else if (matchDomain("techinasia.com")) {
else if (matchDomain("thestar.com")) { else if (matchDomain("thestar.com")) {
let meter_banner = document.querySelector('.c-article-meter-banner'); let meter_banner = document.querySelector('.c-article-meter-banner');
removeDOMElement(meter_banner);
let rightrail = document.querySelector('.c-article-body__rightrail'); 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'); let paywall = document.querySelector('.basic-paywall-new');
if (paywall) { if (paywall) {
removeDOMElement(paywall); removeDOMElement(paywall);