For example, change the built-in Wikipedia Quicksearch bookmark to point to
Code: Select all
javascript:if('%s'==String.fromCharCode(37,115)) location.href='http://en.wikipedia.org/wiki/Main_Page'; else location.href='http://en.wikipedia.org/wiki/Special:Search?search=%s';
Not only can you type in wp something to look up something, but you can also just type wp to go directly to Wikipedia's homepage!
Similar example for slashdot:
Code: Select all
javascript:if('%s'==String.fromCharCode(37,115)) location.href='http://slashdot.org/'; else location.href='http://slashdot.org/search.pl?query=%s';
And google:
Code: Select all
javascript:if('%s'==String.fromCharCode(37,115)) location.href='http://www.google.com/'; else location.href='http://www.google.com/search?q=%s';
This trick obviously requires javascript to be enabled, and you'll notice the entire bookmarklet will appear in the URL bar until the web page loads.
Hope this is useful to someone