Home > Uncategorized > Extending Firefox search for intranet sites

Extending Firefox search for intranet sites

Its been a long time since I blogged. I am restarting with a technical blog and hopefully it helps some folks.

For any intranet/internet application that delivers a page based on a key and if the url remains constant , we can extend the search facility in firefox. All we need to do is just write on very simple xml and paste the xml in Firefox/searchPlugins folder usually in C:/Program Files/MozillaFireFox/searchplugins on Windows or  /Application/MozillaFireFox/searchplugins on Mac. Please check with your installation path for pasting the xml file.

After the xml is deployed the search option would look like this

My Intranet search is the new  intranet search site added.

So now lets create a search for a local wikipedia  deployed in intranet

Assume the url for our wiki to be


For every new page added the ur will transform into

http://mywiki/en/topic=($topic) where $topic is the name of the topic. As long as http://mywiki/n is constant and only the topic changes for every article, the xml configuration will be very easy

<ShortName>My Intranet Search</ShortName>
<Description>Search my Intranet Wiki</Description>
<Image width=”16″ height=”16″>data:image/x-icon;base64,=XXXXXXXXXXXXXXXXXXXX</Image>
<Url type=”application/x-suggestions+json” method=”GET” template=”http://mywiki/en{searchTerms}”/>
<Url type=”text/html” method=”GET” template=”http://mywiki/en”&gt;
<Param name=”topic” value=”{searchTerms}”/>

To get an image beside the search option, please replace the XXXXXXXXXXXXXX with the encoded image data. To encode the image, please choose an image and upload in the site http://www.motobit.com/util/base64-decoder-encoder.asp to get the encoded data. Paste the data ans save the XML. Restart Firefox and check out your new search

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: