Stack Overflow Search Provider

2 March 2009 –

Stack Overflow is a fantastic site. From the standpoint of a consumer (me), it’s a huge success on nearly all fronts. Kudos to Jeff and Joel and the team for the great work. However, I’ve noticed one glaring piece of suck on the site – the search. We are way too spoiled by Google to put up with this circa-2000-quality search results. So, until they fix it (given their track record so far, I expect it to eventually excel), I have taken to using Google’s index of the site. Typing site:stackoverflow.com gets old though, so to save me (and now, you) the extra 23 keystrokes, I’ve made a Stack Overflow Google Search provider for Firefox:


<searchplugin xmlns="http://www.mozilla.org/2006/browser/search/">
     <shortname>Stack Overflow</shortname>
     <description>Stack Overflow Google Search</description>
     <inputencoding>UTF-8</inputencoding>
     <img height="16" width="16" />data:image/x-icon;base64,R0lGODlhEAAQAMQAAGZmZu6+gNhWI+aeQfvv35lmM8+4oOB4T/fd0+CGEbuZd9bCrf///+HClvPPoOSWMbSPaeWObOiae9thMvro4vffwOTWyequYPj18f337/XXsOimUAAAAAAAAAAAAAAAACH5BAAHAP8ALAAAAAAQABAAAAVhICOOYjYJCKmSkjBRaxwJRxZXzpgdQhRviYdGRDlJVoRLIjgsTmyrTOARrCBSJMPCgmEQNINNrEAmKwyNSsyggJTJKgBAhbEsDAy5SC/v9/NzgIB+fIF6MXuGhIuHjIwMIQA7</img>
     <url template="http://www.google.com/search" method="GET" type="text/html">
         <param value="site:stackoverflow.com {searchTerms}" name="q" />
         <param value="utf-8" name="ie" />
         <param value="utf-8" name="oe" />
         <param value="t" name="aq" />
     </url>
     <searchform>http://www.google.com/search?q=site%3Astackoverflow.com</searchform>
</searchplugin>

Just create a new xml file in your Mozilla Firefox\searchplugins folder, paste the above in, and restart FF. You should see something like this:

sosearch

1 Comment
Reply to this comment
mars – 10 March 2009

thanks for this Stack Overflow Search Provider.pretty cool. & thanks for the answers on stackoverflow.:)

© 2002-2009 Rex Morgan.
Content available under a Creative Commons license.
Site code and design may not be reproduced.