Jeff Lebowski is ... the Dude. Vestibulum id ligula porta felis euismod semper. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor.

More >

Powered by Squarespace
  • The Big Lebowski (Limited Edition) [Blu-ray Book + Digital Copy]
    The Big Lebowski (Limited Edition) [Blu-ray Book + Digital Copy]
    starring Jeff Bridges, John Goodman
  • The Big Lebowski (Widescreen Collector's Edition)
    The Big Lebowski (Widescreen Collector's Edition)
    starring Jeff Bridges, John Goodman, Julianne Moore, Steve Buscemi, David Huddleston
  • The Big Lebowski - 10th Anniversary Limited Edition
    The Big Lebowski - 10th Anniversary Limited Edition
    starring Jeff Bridges, John Goodman, Julianne Moore, Steve Buscemi, David Huddleston
« Twitter Is... Well, You Know | Main | Three Observations from Le Web »
Saturday
Dec192009

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.)



Reader Comments (17)

Is it possible to tweak the first javascript to show the query results in a new tab or window?

December 19, 2009 | Unregistered CommenterIndy Kal

Not sure. I bet someone can.

December 19, 2009 | Unregistered CommenterSteve Rubel

I seconded that, new tab would be awesome.

December 19, 2009 | Unregistered CommenterMarcos M

This works for the first bookmarklet. (open in a new tab)javascript:x=escape(getSelection());if(!x)%7Bvoid(x=prompt('%20-%20Google%20Real-time%20Updates:',''))%7D;u='http://www.google.com/search?hl=en&rls=en&tbo=1&output=search&tbs=mbl:1&q='+x;{a%20=function(){if(!w.open(u))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();}void(0)

December 19, 2009 | Unregistered CommenterIndy Kal

Yay, just learned something new! The workaround to the second bookmarklet:javascript:x=escape(getSelection());if(!x)%7Bvoid(x=prompt('%20-%20Google%20Real-time%20Search:',''))%7D;window.open('http://www.google.com/search?hl=en&rls=en&tbo=1&tbs=rltm:1&q='+x)

December 19, 2009 | Unregistered CommenterMarcos M

Dear Steve Rubel ,I have used the ''Google Real-Time Search'' at some cities in Turkey, as :Twitter Or Facebook ,and posted at http://hopladedegi.wordpress.com/2009/12/19/twitter-or-facebook-some-cities-in-turkey/Thank You,and Best Wishes...

December 19, 2009 | Unregistered CommenterHasan Sabri Kayaoglu

Awesome bookmarklet once again, Steve! Silly little thing but Chrome users can't just grab the code like you've got it, so if there's anyone here who wants a quick draggable link I've posted on here. http://marshallk.com/how-to-add-google-real-time-search-to-your-bookmarks

December 19, 2009 | Unregistered CommenterMarshall Kirkpatrick

Awesome stuff, Steve. Thanks for sharing!

December 20, 2009 | Unregistered CommenterSpinchange
December 20, 2009 | Unregistered CommenterDave S

Hi Steve, the pre-selected feature is not workable for Chinese, is there any way to fix it? since I sometimes search Chinese information.

December 20, 2009 | Unregistered CommenterYoung Yang

I love this, thanks for the write up! And multi-language preselect would be great if doable!@Marshal K.: I'm using chrome and I could grab the code off this page into my bookmarks bar just fine? Maybe we're using different versions?

December 20, 2009 | Unregistered CommenterEdmond Lu

Real time search on Google has been a big disappointment for me so far because it doesn't produce anything for virtually all the searches I'm interested in relating to my work, even about financial issues in the news.However, I've been using the bookmarklets you posted before (with tweaks) for a while with great success on Firefox, loving Marshall K's Chrome one now too.

December 21, 2009 | Unregistered CommenterSally Church

I took this idea, and created a search plugin for Firefox. My blog post can be found here: http://bundyxc.com/?p=235You'll find a link to your blog in my post. Props on the bookmarklet.

December 25, 2009 | Unregistered Commenterbundyxc

Very cool, thanks for sharing.

December 25, 2009 | Unregistered CommenterSteve Rubel

yes i think its great tool.

January 8, 2010 | Unregistered Commenterkilleyh

hmm i liked the plugin thanks a lots for providing the information in you great post "bundyxc"

January 8, 2010 | Unregistered Commenterkilleyh

heh, nice plug, thx for share bro!keep good work

January 21, 2010 | Unregistered Commenterlektira

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>