Update 16/01/11: Helpful commenter Ewerton points out you can just hit the tab key to bring up the login prompt. So the below now saves you a grand total on 1 key press! Probably not worth it
I find myself clicking on this a lot:

It brings up this little box from which you can log in to twitter:

In fact, it's rare that I don't want to click on "Sign in". So wouldn't it be great if that log in box was already there and that the cursor was in the username box ready to be typed in.
I've written a greasemonkey script to do just that! It works in firefox with greasemonkey installed and in Chrome. Here it is:
Twitter login greasemonkey script. (clicking the link won't do anything interesting unless you're using Chrome or have greasemonkey installed in firefox)
If you're interested to know the technical details keep reading.
When you click on the sign in button three things happen:
- The sign in link gets the menu-open class added which changes it's appearance
- The login box (signin_menu div) loses the offscreen class. The offscreen class positions the div -9999px from the left!
- The username field gains focus
All the greasemonkey script does is recreate the behaviour when the page loads.
Check out my greasemonkey script for making TfL's Journey planner much easier to use.
Tags: greasemonkey, guide, keyboard shortcuts, twitter

