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 Feed-icon

1 point
login to vote
SourNote script's author
Posted Oct 1, 2008

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.

1 point
login to vote
RNiK user
Posted Sep 30, 2008

Great script!

+1 for Alexball feature request: I would like to see this work for Google Blog Search, Google Image Search and Google News.

2 points
login to vote
Alexball user
Posted Feb 2, 2008

Hello,

how can I modify the script so that

Web Images Maps News Shopping Mail more ▼ stays at the to as well?

Thanks
Alex

1 point
login to vote
Sheeko user
Posted Jun 15, 2007

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.

1 point
login to vote
KosciaK scriptwright
Posted Apr 30, 2007

One more style is needed:
#completeDiv{position:fixed !important;}

that way suggested search queries are not lost when scrolling

1 point
login to vote
KosciaK scriptwright
Posted Apr 23, 2007

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("....")

1 point
login to vote
KosciaK scriptwright
Posted Apr 19, 2007

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

1 point
login to vote
Posted Apr 19, 2007

I should add that it doesn't work with the CustomizeGoogle setting "Add links to other web search results" :)

1 point
login to vote
Posted Apr 19, 2007

This query doesn't seem to work with this UserScript:

http://www.google.com/search?q=%22for+a+while+l...

1 point
login to vote
KosciaK scriptwright
Posted Apr 18, 2007

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.

1 point
login to vote
SourNote script's author
Posted Apr 18, 2007

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.

1 point
login to vote
SourNote script's author
Posted Apr 18, 2007

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!

1 point
login to vote
KosciaK scriptwright
Posted Apr 17, 2007

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.

You could comment on this script if you were logged in.