mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Fix lookup in Google partially hidden due to change in Google results page markup
This commit is contained in:
parent
4cf5350a7c
commit
01d00310b8
@ -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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user