Tuesday, October 28, 2008

Adding google image search to firefox search plug-in

Objective:
Top right corner of firefox 3.0.3 allows us to search google. But it doesn't offer anyway to search for images. Thus what I usually do is, type in {searchTerms} like "anime", which will take me to a google web search page, and then click on Images on the top left corner of the search page to access a list of images found.

Solution: Add a search plug-in

Duration: 1hr to figure out, 1 minute to add plug-in, 20minute to blog

Wrong way:
I browsed to C:\Program Files\Mozilla Firefox\searchplugins and make a duplicate copy of google.xml Then changed SearchForm and SearchURL parameters. I restart firefox hoping that as mention in Learn to Create a Firefox Search Plugin in Less Than 2 Minutes that the newly added image search will work. (Similar goes for Build Your Own Firefox Search Engine.) And off course it didn't work.

Correct way:
At the top right search plug-in, click on the drop down for Manage Search Engines and then Get More Search Engines which will open a new tab to take you to Firefox Add-ons. Add Mycroft Project to firefox. At the search plug-in, select Mycroft project and search for "google image".
Select your desired new search plug-in. For my case, it was Google Images en-WW (images.google.com) by Stefan Hittler

You can test and generate your own search plug-in via Mycroft Project Submission utility without ever needing to deploy your own xml on to a webserver. Ctrl-K to jump to text field at the search plug-in. If you need to roll out your own page for adding a search engine, see Adding search engines from web pages

No comments:

Post a Comment