How to make your own search plugin for Firefox

Firefox search engine plugins are xml files stored in the Profile folder of Firefox.
In the profile folder you can find searchplugins folder.
A sample xml looks like the one below.

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Technology Freaks me out!!!</os:ShortName>
<os:Description>Search Tyrants World</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AN2ZAADMqpkAiCIRAKpmMwDdqkQA7t3MAO7MdwC7iGYAmVUAALt3AADdzKoAzIgiAJlEIgDMqmYAu4hEAO7u7gCqZhEAmVVEAIgzAACIMyIA3buZAMyIAADdqhEA7rtmAN27dwC7iBEAzJmIAN2ZIgC7dyIAu5l3AMyZMwDu7t0A7t3dAIgzEQDdzLsAmUQAAJkzIgDdu6oAqlUAAO7MiACqZgAAzKqqALtmAACZRDMAzHcAAN2ZEQDMqogAu3cRAKpVMwDdu2YAqmYiAKpVRADMqncA3aozALuIdwDMmWYAu4gzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AA4AMAAPADAAD4AwAA/AcAAP4HAAA=</os:Image>
<SearchForm>http://tyrantsworld.blogspot.com/search</SearchForm>
<os:Url type="text/html" method="GET" template="http://tyrantsworld.blogspot.com/search">
<os:Param name="q" value="{searchTerms}"/>
</os:Url>
</SearchPlugin>



  1. os:ShortName
  2. The name to be displayed on the search plugins select box.

  3. os:Description
  4. Any description as you want.

  5. os:InputEncoding
  6. Encoding to be used while searching. Usually it is UTF-8

  7. os:Image
  8. An image to be displayed along with search enging name. You can add the site logo or favicon. Image data should be provided as a base64 encoded string. A free online converter can be found here

  9. SearchForm


  10. os:Url
  11. The search action. In the above xml search action is "http://tyrantsworld.blogspot.com/search". os:Url should have an argument "os:Param". os:Param name is the name of the search box in the web page and value should be {searchTerms}

Related Posts by Categories



Widget by Scrapur

0 comments

Post a Comment