October 16, 2006

Bookmarklet to find related posts

Imagine you are in a blog and you like the subject matter of the post that you are reading. If you would like to read other posts in Bloggosphere on the same topic, you could use Google blogsearch. But still, one has to use complex search operation with multiple keywords to get the most relevant results. Sometime back I wrote a script to do this intelligent search on your behalf and display the top 5 results. It uses the title of the post to form a search operation and the RSS feed of the results is processed and displayed in a nice fashion. I will describe how to create a bookmarklet in your browser to use this script (Thanks again to Greg of Freshblog for hinting me on the bookmarklet).

1. Just right-click the link below and "Add to favorites" (preferably under Links folder so that it shows up in Links bar). IE might complain about bookmarking javascript code. Ignore it and continue to add the bookmarklet. If you are using firefox, right-click, choose "Bookmark this link" and add to Bookmarks toolbar.

Find related posts

2. Whenever you are in your/another blog and you would like to read more on the topic, just click this bookmarklet and it will take you to a page that shows related posts.

To test your bookmarklet, goto this Blogger Buzz post about AJAX search API. I got mostly relevant results.

Note that you should be in a post page and not the main page for this to work. Also, since it is only a best-effort search, you might get irrelevant posts sometimes.


LOUI$$ said...

hi ramani,i aware that your google adsense put below the post,how you did that?thanks

Unknown said...

Loui, I have sent you an email.

LOUI$$ said...

sorry ramani,can you resend it to me?email me at louislim2@gmail.com.thanks!

protesto said...

Hi Ramani,

It would be great, if we can show this related post under this main post.

Btw, I'm looking a hack for displaying adsense inside a beta blogger post.