I figured since Mozilla/Firefox is Open Source Software (OSS) it should be possible to find out how to write one. And it is....
I followed the instructions on
this page (liked from the plugins page).
And in a few minutes with a text editor I came up with this:
Code:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>McMaster-Carr</ShortName>
<Description>Searches McMaster-Carr for stuff</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">http://www.mcmaster.com/gfx/products_catalog_115.gif</Image>
<Url type="text/html" method="GET" template="http://www.mcmaster.com/#{searchTerms}">
</Url>
<Url type="application/x-suggestions+json" template="suggestionURL"/>
<moz:SearchForm>http://www.mcmaster.com</moz:SearchForm>
</OpenSearchDescription>
Which I saved as
McMaster-Carr.xml and then copied it to my
/home/utidjian/.mozilla/firefox/6r872f7x.default/searchplugins/
folder.
I am using Linux and if you are also the
utidjian sub-folder name and the
6r872f7x.default sub-folder names will be different on your Linux system.
It should also work for Firefox in Windows but I don't know yet where Windows puts search plugins for Firefox. I will find out.
It may or may not work in Windows IE7. There are some caveats on the instructions page linked to above. If someone can rewrite it to work in IE7 that would be cool.
The icon comes out a bit mangled. I couldn't find a proper favico.ico icon on the McMaster site though there presumably is one. If anyone findsor makes a better icon please post it here.
The usual disclaimers apply. The above .xml file works for me. Your mileage may vary. As with all OSS code there is no warranty and if you break it or it breaks something of yours you get to keep all the pieces
-DU-