Matt Cutts, Google’s head of the webspam team, answered Which search feature would you add to Google? in the following Google Webmaster Central video.
In it he said he’d like to make the URLs cleaner, leaving just the search?q=whatever parts. He mentioned writing a Greasemonkey script, so I thought I’d write a little bookmarklet to help him out.
Just drag the following link to your bookmark bar and when you’ve completed a search in Google it will open a new window with the corrected search string and replace the URL.
Edit – Thanks to a comment by Bruno Sabot I’ve updated the bookmarklet to work with iGoogle.
Edit 2 – I’ve changed the way I grab the query string and now the bookmarklet seems to work okay in most flavours of the main Google search.
Edit 3 – See Trim Google Search URL – Now with Added Hash! for a version which handles the form of the Google URL with (or without) hashes.