up vote 1 down vote favorite
share [g+] share [fb]

Google has placed that button too low for my taste.

link|improve this question
feedback

1 Answer

You mentioned Greasemonkey so assuming you're using Firefox, I recommend using Stylish in this case ("Stylish is to CSS what Greasemonkey is to JavaScript"), and targeting the Advanced Search link through CSS. For example:

a[href~="/advanced_search"] {
    position: absolute;
    top: 20px;
    left: 20px;
}

That will take all anchors on the page with a href attribute containing /advanced_search and position them 20px from the top left of your browser. See W3Schools for more CSS positioning information.

link|improve this answer
Thanks for the tip. That led me to <i>input[type="submit"]</i> and then added the coordinates. – Zorro Sep 13 '09 at 1:29
My mistake! Could only find Advanced Search links, no buttons. See w3.org/TR/CSS2/selector.html#attribute-selectors for more information on how to target page elements through their attributes. Hope that helps mate! – Thomas Sep 13 '09 at 4:03
Actually, when I was posting the above comment, I saw the “Post Your Answer” button, at the bottom of this page, jump to the new place for the Google’s “Advanced Search” button, and I knew that there had to be an even better method to target that button. Eventually I found it: input[value="Advanced Search"]. Thanks again. – Zorro Sep 13 '09 at 6:19
Correction: It was the "Answer Your Question" button that moved, and also the "Add Comment" button that appears on the right when this comment box opens. – Zorro Sep 13 '09 at 6:25
1  
In regards to your CSS rule affecting sites other than Google: @-moz-document domain("www.google.com") { input[value="Advanced Search"] { .. } } I should've mentioned this to begin with, but I had some memory this was included in the default Stylish userstyle - sorry. developer.mozilla.org/en/CSS/@-moz-document – Thomas Sep 13 '09 at 6:46
show 2 more comments
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.