Google Search Fixed Topbar
Last update on Sep 25, 2008
Keeps the top bar at the top of the window, rather than scrolling it with the page
A simple script that loads some CSS rules to keep the top bar of Google search at the top of the window.
Compatible (and totally bitchin') with the Auto Page Firefox extension:
https://addons.mozilla.org/en-US/firefox/addon/...
If any particular searches break the script, post it below.
You could comment on this script if you were logged in.
13 comments
You could comment on this script if you were logged in.

login to vote
I plan on adding support for the other google searches in the future. The only problem is that the other searches have rather messy HTML. The main search recently was cleaned up, so I'm hoping the same happens for the other pages. In the meantime, I'll see if I can work something up.
login to vote
Great script!
+1 for Alexball feature request: I would like to see this work for Google Blog Search, Google Image Search and Google News.
login to vote
Hello,
how can I modify the script so that
Web Images Maps News Shopping Mail more ▼ stays at the to as well?
Thanks
Alex
login to vote
I found out that when this script is enabled, the yahoo image search page does not show .. I have to disable it for it to show.
login to vote
One more style is needed:
#completeDiv{position:fixed !important;}
that way suggested search queries are not lost when scrolling
login to vote
Just a small change in the Stylish version:
@-moz-document url-prefix("http://www.google.com/search"), url-prefix("http://images.google.com/images"){
instead of using domain("....")
login to vote
SourNote is the authir so he can update the version here. Here's my modified version http://kosciak.blox.pl/resource/googlesearchfix...
or for Stylish extension http://kosciak.blox.pl/resource/staticsearchbar...
Seems to work ok with that query and with "Add links to other web search results" option enabled
login to vote
I should add that it doesn't work with the CustomizeGoogle setting "Add links to other web search results" :)
login to vote
This query doesn't seem to work with this UserScript:
http://www.google.com/search?q=%22for+a+while+l...
login to vote
I've checked the CSS reference and it's... Fixed! :)
Just add these styles:
table[class="t bt"] {position: fixed !important; top: 95px !important;}
body {margin-top:120px !important; }
With !important you force the style to be used.
These pixel values works great with results pages on the bottom, so it might need some tweaking.
login to vote
I also just realized that my script only works well if you are logged into your Google account. Not being logged in causes the first result or so to be hidden. Currently on deadline at work, but when I have a chance, I'll update.
login to vote
I have AutoPager installed and haven't run into any problems with it yet. I'll check out how CustomizeGoogle affects the page and see if I can clean things up a bit. Thanks for the advice! I appreciate it!
login to vote
I love the idea! Especially combined with GoogleAutoPager (http://userscripts.org/scripts/show/8430). But....
GM_addStyle('#navbar {position: fixed; top: 70px; left: 165px;width:1%;}'); - moving result pages under searchbox is not working correctly (changing "top: 60px" to "top: 70px: helped a bit, but it's messy with Google AutoPager).
I'm using extension CustomizeGoogle (so it might interfere...) and Polish version of Google. Just in case it matters.
If I'm not logged in to my Google Account static topbar covers the results. Adding:
GM_addStyle('table[class="t bt"] {padding-top: 100px;}'); helps a lot. This "Results 1-10 from 2,9000 pages blah blah" bar is visible and results are not covered.
But when I'm logged in sometimes it works, sometimes this "Results 1-10 blah blah" bar is fixed positioned, streched (because of the added style) so even more results are covered.