From 9ec15fdcb8ac7c299629fd2582be5e2c84db923b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 Apr 2020 09:02:56 +0530 Subject: [PATCH] Viewer lookup panel: Make the google lookup page waste less space --- resources/lookup.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/lookup.js b/resources/lookup.js index dd6e75b5ca..abccda57c3 100644 --- a/resources/lookup.js +++ b/resources/lookup.js @@ -11,6 +11,9 @@ function fix_google_markup() { var cc = document.getElementById('center_col'); cc.style.marginLeft = '0'; + cc.style.position = 'absolute'; + cc.style.top = '0'; + cc.style.left = '0'; cc = document.getElementById('cnt'); if (cc) cc.style.paddingTop = '0'; var params = new URLSearchParams(document.location.search.substring(1)); @@ -22,6 +25,8 @@ if (elem) elem.style.display = 'none'; }); } + var promo = document.getElementById('promos'); + if (promo) promo.parentNode.removeChild(promo); } if (window.location.hostname === 'www.google.com') fix_google_markup();