Viewer lookup panel: Make the google lookup page waste less space

This commit is contained in:
Kovid Goyal 2020-04-16 09:02:56 +05:30
parent 65d9d72588
commit 9ec15fdcb8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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