Friday, December 25, 2009

Search the Live Web with Two Simple Bookmarklets

Search the Live Web with Two Simple Bookmarklets


I have become addicted to Google's new real-time search feature. It's an incredible window onto the world's psyche. However, it's somewhat lacking in one small way.

By default, Google doesn't serve up real-time results for most searches. It only does so for topics that are in the news or the conversation zeitgeist. For example, as of this writing, a search for the phrase "Google" doesn't turn up any real-time results. Compare this with any of the terms listed on Google Trends, all of which will automatically feature real-time results. 

If you want to easily access Google real-time results for any query, all you need is two simple bookmarklets.

The first bookmarklet once triggered will reveal the latest status updates from Twitter, Jaiku, Facebook and others. If you select text on a page it will automatically pull it into a query. If you don't select any text, the bookmarklet will pop up a box for you to enter a query.
javascript:x=escape(getSelection());if(!x)%7Bvoid(x=prompt('%20-%20Google%20Real-time%20Updates:',''))%7D;window.location='http://www.google.com/search?hl=en&rls=en&tbo=1&output=search&tbs=mbl:1&q='+x
The second bookmarklet is broader - it pulls in all real-time results from blogs, news sources and Twitter and like the one above will work on pre-selected text or a new query.
javascript:x=escape(getSelection());if(!x)%7Bvoid(x=prompt('%20-%20Google%20Real-time%20Search:',''))%7D;window.location='http://www.google.com/search?hl=en&rls=en&tbo=1&tbs=rltm:1&q='+x
Both bookmarklets should work in various browsers. I tested them in Safari and Firefox. All you need to do is create a bookmark with the precise URL listed above. (For some reason I can't get javascript code to link properly on Posterous, otherwise I wold have done so.)

Permalink | Leave a comment  »


No comments:

Post a Comment