Technorati Tags: ,,,

diy-firefox-search-plugin As an avid Firefox user I rely on its inbuilt search box to help me navigate the web.  One of its best features is its ability to add support additional websites you are interested in.  The Mycroft project contains an extensive list of compatible plugins covering thousands of websites.  But if the site you want isn’t listed there don’t despair – its easy to create your own!

I’ve been using Fishpond to buy books and DVDs because they are consistently among the cheapest online stores in Australia.  To make it easier to shop there I decided to create a search plugin for Firefox. 

The whole process was pretty painless:

  1. Go to the Mycroft search plugin submission page and start entering basic description, classification and author information for the plugin.
  2. Choose an icon for the search plugin.  Typically the best choice is the favicon for the website you are searching.  You can download it by opening the favicon.ico file in the root directory for the website. e.g.
    http://www.fishpond.com.au/favicon.ico
  3. Open a new tab, go to the website you are building the plugin for and execute a search using a simple term.  Once the search page appears copy the URL from the location bar.  In my case I searched on the term "TEST" and got the following URL: (Note: Single URL line wrapped)
    http://www.fishpond.com.au/advanced_search_result.php?
    keywords=TEST&x=50&y=13
  4. Replace the search term (e.g. TEST) with the value "{searchTerms}".  This should be pasted into the "Search URL" field on the submission form.  e.g. (Note: Single URL line wrapped)
    http://www.fishpond.com.au/advanced_search_result.php?
    keywords={searchTerms}&x=50&y=13
  5. The "Search Form" field needs to be filled in with the page containing the search results.  This will be the search URL minus everything to the right of the question. e.g. http://www.fishpond.com.au/advanced_search_result.php
  6. Hit the "Generate Plugin" button, look at the generated XML, and if it looks OK hit the "Submit" button.
  7. If all goes well you will be taken to a page showing your submitted plugins.  Install and test the new plugin, and if it searches as expected you are done!

The whole process takes less than 5 minutes and you will now be able to search this site from the convenience of your browser’s search box!

Note: Please see the Mozilla developer page if you need more detail on how to create OpenSearch plugins.  You might also consider adding your new search plugin to Opensearchlist or Searchplugins so more people can find it.

    Print This Post Print This Post