E-book viewer: Fix lookup in Google partially hidden due to change in Google results page markup

This commit is contained in:
Kovid Goyal 2021-09-22 13:33:58 +05:30
parent 4cf5350a7c
commit 01d00310b8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -18,7 +18,10 @@
setTimeout(fix_google_markup, 100); setTimeout(fix_google_markup, 100);
return; return;
} }
cc.style.maxWidth = max_width;
cc.style.marginLeft = '0'; cc.style.marginLeft = '0';
var rcnt = document.getElementById('rcnt');
if (rcnt) rcnt.style.marginLeft = '0';
cc = document.getElementById('cnt'); cc = document.getElementById('cnt');
if (cc) cc.style.paddingTop = '0'; if (cc) cc.style.paddingTop = '0';
var s = document.getElementById('search'); var s = document.getElementById('search');
@ -29,7 +32,7 @@
cc.style.position = 'absolute'; cc.style.position = 'absolute';
cc.style.top = '0'; cc.style.top = '0';
cc.style.left = '0'; cc.style.left = '0';
var remove = ['sfcnt', 'top_nav', 'before-appbar', 'appbar', 'searchform', 'easter-egg']; var remove = ['sfcnt', 'top_nav', 'before-appbar', 'appbar', 'searchform', 'easter-egg', 'topstuff'];
remove.forEach(function(id) { remove.forEach(function(id) {
var elem = document.getElementById(id); var elem = document.getElementById(id);
if (elem) elem.style.display = 'none'; if (elem) elem.style.display = 'none';