Creating own firefox search-plugin

Firefox has awesome features as everybody knows and one of which is this search plugin. Creating search plugin doesn’t take more than 2 minutes in firefox. Just follow the steps below blindly.

0. Basic requirement you should have firefox installed in your system.

1. Navigate to the searchplugins directory of you firefox installation.

2. open a file called <any-name>.xml using your favourite editor and insert the following content.

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>MySearch</ShortName>
<Description>MySearch description</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-
icon;base64,Qk32AAAAAAAAAHYAAAAoAAAAEAAAABAAAAABAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD
%2FAAD%2FAAAA%2F%2F8A%2FwAAAP8A%2FwD%2F%2FwAA%2F%2F%2F
%2FAIiIiIiIiIiIiIiIgAiIiIiIiIgLMIiIiIiIiAswiIiIiIiIgAiIiIiIiIgLMIiIiIiIiAswiIiIiIiICzCIiIiIiIgLswiIiIiIAIC7MIiIiICzCAuzCIiIgLMIgLMIiIiAuzALswiIiIgLu7swiIiIiIAAAAiIiIiIiIiIiIiI</
Image>
<Url type="text/html" method="GET" template="http://mysearchurl.com?q={searchTerms}"></Url>
</SearchPlugin>

3. Save the file and restart firefox. You see your magical search plugin working great.

You can generate the image data by uploading your image at http://software.hixie.ch/utilities/cgi/data/data . {searchTerms} will be replaced by the search content entered by the user. You can edit the search url accordingly to your use.

That’s it. It glows like gem [:)] .

Leave a Reply

Your email address will not be published. Required fields are marked *