Creating OpenSearch plugins for Mozilla Firefox

March 15th, 2008 by stevi | Filed under opensearch

I frequently use the CocktailDB web site to find and compare cocktail recipes.

Being a lazy programmer who uses Firefox, I got fed up with having to go to the main search page to start a new search, so I finally decided to experiment with making an OpenSearch plugin so I could start a search right from the Search Engine section of my Toolbar.

I found the information on the Mozilla Developer site to be sufficient to get me going. The only real issue I hit was figuring out all the right parameters to send in post to the search url. Happily, LiveHTTPHeaders solved this with one request. I turned on LiveHTTPHeaders from Tools, made a request from the normal search page, and voilà, all the parameters were captured for me to examine and add as needed to my OpenSearch xml document.

Within a half-hour, I had two different OpenSearch plugins, one to search by recipe name, and one by an ingredient. I used URI kitchen to get the correct string to format the favicon.ico that CocktailDB uses on their site, created an html page with links in the headers to enable autodiscovery, and I was good to go.

You can try the plugins for yourself by visiting my autodiscovery page and adding one or both plugins. Enjoy, and maybe you’ll be inspired to create a search engine plugin for one of your frequently used sites. Or to mix yourself a nice drink.

Cheers!

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

tag_iconTags: | | | | | | | | | | |

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

1 Response to “Creating OpenSearch plugins for Mozilla Firefox”.

  1. [...] also wrote about the process of creating the plugins for anybody’s who’s curious about [...]

Leave a comment.

To leave a comment, please fill in the fields below.