Awesome little bookmarklet that allows you to play Asteroids on any page and shoot everything on it.
#bookmarklet
Twitter Search Bookmarklet
Throughout the day, I’m likely to search Twitter a number of times. Being the lazy person that I am, I got sick of opening a new tab, typing search.twitter.com, hitting enter, waiting for the page, then typing my term and waiting for results. I already have a couple of other bookmarklets that I use all the time (one for loading up a Google Map, one for jumping to a PHP function name in the online reference), so I figured I’d knock up something to search Twitter. I’m using Firefox on a Mac, YMMV.
- Bookmark any page (seriously, any page).
- Put that bookmark into your Bookmarks Toolbar.
- Right click it and select Properties
- Change the Name to something like “Search Twitter”
- Change the Location to this (copy and paste it):
javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0));if(!s.length){s=prompt('Search%20Twitter:','');}if(s){document.location.href='http://search.twitter.com/search?q='+escape(s);}else{void(0);}
- Save Changes
That’s it. Now click that link in your Bookmark Toolbar and it’ll prompt you for a search string. Enter anything and hit OK. If you happen to have some text on the page selected, it’ll automatically search for that text. Voila – Twitter Search.
“Design” bookmarklet
Design is a suite of web-design and development assistive tools which can be utilised on any web-page. Encompassing utilities for grid layout, measurement and alignment, Design is a uniquely powerful JavaScript bookmarklet.
Google Maps Bookmarklet
I’m sick of Cmd-T, maps.google.com, Enter, ‘address’ + ‘, sf, ca’ so I made this quick little bookmarklet to speed up the process a little.
Drag it to your bookmark toolbar, then click it, enter a street address (eg. ‘2000 Bush St’) and hit ‘Ok’ to get an instant Google Map to that location in San Francisco (my current hometown).
Obviously editing this to work for different cities in the US would be trivial – knock yourselves out.