From 980aedcb9008e9bc5dd126e296dacda5ddc1f4b9 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Wed, 11 Jul 2012 10:25:11 -0500 Subject: [PATCH] greader_minimalistic: Fix for new top bar --- greader_minimalistic.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) { -- 2.45.2