Home Page Forums Blog Articles Videos Search Register Advertise






Go Back   Practical Machinist - Largest Manufacturing Technology Forum on the Web > Manufacturing Today > General New

General New General metalworking, machine tool, and woodworking machinery discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2009, 05:54 PM
Keith Krome Keith Krome is offline
Hot Rolled
 
Join Date: Dec 2005
Location: Auburn, Alabama
Posts: 709
Default Firefox search engine and McMaster-Carr

In firefox one can highlight a passage of text, then right click on it and produce a google search or one of many search engines. There is a selection of search engine add ons at https://addons.mozilla.org/en-US/fir...:all?sort=name

Is there anyway to add a McMaster-Carr search engine so it exhibits the same behavior, only using the McMaster Carr "find products" field?

I can see me doing that with certain items, highlighting a key word, and doing a McMaster-Carr search by simple right clicking and pulling down a menu.

Would this be something that McMaster would prompt Firefox/mozilla to do, or can someone with only g-code & some ancient FORTRAN experience configure Firefox to do this?

Last edited by Keith Krome; 05-29-2009 at 06:24 PM. Reason: spelling/typo/grammar
Reply With Quote
  #2  
Old 05-29-2009, 06:22 PM
Chip Chester's Avatar
Chip Chester Chip Chester is offline
Aluminum
 
Join Date: Dec 2007
Location: Central Ohio USA
Posts: 187
Default

Keith,
I seems like that would be a Firefox plugin authored by McMaster Carr. you might plead your case to them.

Chip
Reply With Quote
  #3  
Old 05-29-2009, 07:28 PM
John Welden's Avatar
John Welden John Welden is online now
Cast Iron
 
Join Date: Mar 2009
Location: Kirkland, WA
Posts: 329
Default

McMaster has the best Ecommerce web site on the planet. Best built in search by far. I wouldn't be surprised if they would make a firefox plugin.
Reply With Quote
  #4  
Old 05-29-2009, 08:11 PM
David Utidjian David Utidjian is online now
Stainless
 
Join Date: Jun 2006
Location: Mahwah, NJ
Posts: 1,629
Default

Well... it was just too intriguing so I wrote one, and it works.

one mo...

-DU-
Reply With Quote
  #5  
Old 05-29-2009, 08:27 PM
David Utidjian David Utidjian is online now
Stainless
 
Join Date: Jun 2006
Location: Mahwah, NJ
Posts: 1,629
Default

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-
Reply With Quote
  #6  
Old 05-29-2009, 08:47 PM
The real Leigh's Avatar
The real Leigh The real Leigh is offline
Diamond
 
Join Date: Nov 2005
Location: Maryland
Posts: 4,474
Default

Quote:
Originally Posted by David Utidjian View Post
It should also work for Firefox in Windows but I don't know yet where Windows puts search plugins for Firefox.
Hi David,

Default location for Windows XP Pro: C:\Program Files\Mozilla Firefox\searchplugins

Can't speak for other versions of windoze.

- Leigh
Reply With Quote
  #7  
Old 05-29-2009, 08:50 PM
David Utidjian David Utidjian is online now
Stainless
 
Join Date: Jun 2006
Location: Mahwah, NJ
Posts: 1,629
Default

Thanks Leigh.

I will go and test it as soon as I find a machine around here that boots Windows. I know I have one somewhere...

-DU-
Reply With Quote
  #8  
Old 06-02-2009, 12:50 PM
gneedel gneedel is offline
Plastic
 
Join Date: Jun 2009
Location: Jackson, TN
Posts: 2
Default

I joined to post this. I took your code and added the icon to it. The favicon for mcmaster was located at www.mcmaster.com/favicon.ico

I converted it to base 64 data(which is what you need for the icon to be carried within the xml file. Everything works good now. I posted the xml file on my website so if people want it they can just download it and drop it into C:\Program Files\Mozilla Firefox\searchplugins


You can download the xml file here http://www.robogreg.com/wp-content/u...6/mcmaster.xml
Reply With Quote
  #9  
Old 06-02-2009, 01:40 PM
David Utidjian David Utidjian is online now
Stainless
 
Join Date: Jun 2006
Location: Mahwah, NJ
Posts: 1,629
Default

Quote:
Originally Posted by gneedel View Post
I joined to post this.
Just curious but HTH did you get cued to the discussion in the first place? Been lurking a while?

Quote:
I took your code and added the icon to it. The favicon for mcmaster was located at www.mcmaster.com/favicon.ico
I swear I tried that first and it only came up with what looked like a blank sheet of paper (or something). Perhaps I misspelled favicon.ico.

Thanks gneedel.

Only potential problem I can see is the filename may have to match the ShortName. McMaster-Carr =/= mcmaster. It may barf on some systems. I will try it on Mac OS X, Linux and Windows when I get to work.

-DU-
Reply With Quote
  #10  
Old 06-02-2009, 02:32 PM
gneedel gneedel is offline
Plastic
 
Join Date: Jun 2009
Location: Jackson, TN
Posts: 2
Default

Quote:
Originally Posted by David Utidjian View Post
Just curious but HTH did you get cued to the discussion in the first place? Been lurking a while?


-DU-

I have been to the site before but don't read it actively. One of my friends IMed me last night saying he found the mcmaster firefox search. I wasn't there and he didn't provide a link so a quick google search lead me to this tread. I plan on sticking around though if people don't mind too much

When I get home I might try making some more of these searches for MSC, Digikey, and a few others I know i would like. Thanks for the thread.

Greg
Reply With Quote
  #11  
Old 06-02-2009, 02:45 PM
Keith Krome Keith Krome is offline
Hot Rolled
 
Join Date: Dec 2005
Location: Auburn, Alabama
Posts: 709
Default

Thanks Greg.

Now I have McMaster search engine icon goodness. Now it seems just as polished and finished as the others.

Google is just an internet version of McMaster Carr search.

Pretty soon I'll be "I mcmastered this last night..." and "I mcmastered that the other day..."

Reply With Quote
  #12  
Old 06-02-2009, 09:34 PM
rkward's Avatar
rkward rkward is offline
Aluminum
 
Join Date: Jul 2007
Location: USA - Midwest
Posts: 160
Default

I have a fix for the missing/generic icon for those of you interested:

The new XML file is as follows:
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</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,
AAABAAIADRAAAAEAGADoAgAAJgAAABAQAAABAAgAaAUAAA4DAAAoAAAADQAAACAAAAABABgAAAAA
AMACAABgAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAhKGfhKKjvtDQAAAAAAAAAAAAAAAAAAAAAAAA
AAAAZQAAAFp+d1CCelKxr0KuuDuVnUOBhYGpqQAAAAAAAAAAAAAAAAAAAGUAAABflYkfbWExvrgl
yM0TvL8hrK06pqVSqKZ9vL0AAAAAAAAAAABlAAAAjMS4JIl7IMrDEM/XHcDME6GrIq2xI7OzKbO1
UKqnqdPRAAAAZQAAAJbRxyaMgx3LzBDP4QnF0gWutwu0uAi3uAm1uCaxrZjb2QAAAGUAAACP1M4l
lpMdzdcW0esYyNgPsbwLq7ILtbsHs7ojrrCg3N0AAABlAAAAhtXTIaClG9LgGNbwE8vaELa4HLO2
EbC5BLa9HLCzmNvZAAAAZQAAAIfX1CKfohvT4BXZ8hvR2hiOhhKEeRSvrQa0uhmvtJfd3AAAAGUA
AACG19Eim5sk3OYV3/cL1eIdnJoVhH0dub0Os8QUr7iG1tUAAABlAAAAjdnTL6GeK9/nGeL7Bdnv
Fr/JF6u1DLHCDLTIDLO8dtHSAAAAZQAAAInQyhJ9ezbm7h7j/BbV7RDO3g/H2Au+0Q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EBQYGBgcICQkKAAAAAAAAAAAAAAAAAAAAAADx/wAAgD8A
AIAPAACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAD//wAA
</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>
David, thanks for your original submission on this to get things started. I have really never used the search feature that much. Rather I use the bookmarks toolbar and new tabs all day long.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:52 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
Ad Management plugin by RedTyger