From: Tony Duckles Date: Wed, 11 Jul 2012 15:25:11 +0000 (-0500) Subject: greader_minimalistic: Fix for new top bar X-Git-Url: http://git.nynim.org/userscripts.git/commitdiff_plain greader_minimalistic: Fix for new top bar --- diff --git a/greader_minimalistic.js b/greader_minimalistic.js index 09a06c2..3418974 100644 --- a/greader_minimalistic.js +++ b/greader_minimalistic.js @@ -14,7 +14,7 @@ // Scott Cowan http://userscripts.org/users/32932 (function() { - var ids = ["top-bar", "lhn-add-subscription-section"]; + var ids = ["gbq", "gbu", "gbx1", "logo-section", "lhn-add-subscription-section"]; function toggle_gr () { @@ -25,6 +25,14 @@ if(document.getElementById(ids[i]) != null) document.getElementById(ids[i]).style.display = is_visible?"none":"block"; } + if(is_visible){ + var elem = document.getElementById('gb'); + elem.style.height = '29px'; + } + else { + var elem = document.getElementById('gb'); + elem.style.height = '102px'; + } } function GRT_key(event) {