mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer lookup panel: Make the google lookup page waste less space
This commit is contained in:
parent
65d9d72588
commit
9ec15fdcb8
@ -11,6 +11,9 @@
|
|||||||
function fix_google_markup() {
|
function fix_google_markup() {
|
||||||
var cc = document.getElementById('center_col');
|
var cc = document.getElementById('center_col');
|
||||||
cc.style.marginLeft = '0';
|
cc.style.marginLeft = '0';
|
||||||
|
cc.style.position = 'absolute';
|
||||||
|
cc.style.top = '0';
|
||||||
|
cc.style.left = '0';
|
||||||
cc = document.getElementById('cnt');
|
cc = document.getElementById('cnt');
|
||||||
if (cc) cc.style.paddingTop = '0';
|
if (cc) cc.style.paddingTop = '0';
|
||||||
var params = new URLSearchParams(document.location.search.substring(1));
|
var params = new URLSearchParams(document.location.search.substring(1));
|
||||||
@ -22,6 +25,8 @@
|
|||||||
if (elem) elem.style.display = 'none';
|
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();
|
if (window.location.hostname === 'www.google.com') fix_google_markup();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user