SGMLXML.net A place for SGML and XML application developers.

February 23, 2006

Add Your Own Search Engine in Firefox

Filed under: Software — @ 11:12 pm







Firefox comes with multiple search sites in the Search Bar in the upper-right corner. The only one that I use on a regular basis is the default google one. I had other search engines that I wanted to add and I wanted to remove the ones that I didn't use. The process of removing search engines will be an exercise left to the reader.



The process of adding your own search engine is fairly straight forward. The following example shows you how to connect the sgmlxml.net blog search engine to the google Search Bar in Firefox.




  1. Navigate to the firefox/searchplugins directory
  2. Create a file named sgmlxml.src
  3. Edit the sgmlxml.src file as follows


sgmlxml.src File Example








<search
name="SGMLXML Blog Search"
description="SGMLXML Blog Search"
method="GET"
action="http://sgmlxml.net/sgmlxmlblogs/index.php"
queryCharset="utf-8"
>

<input name="s" user>
<inputnext name="start" factor="10">
<inputprev>
<input name="ie" value="utf-8">
<input name="oe" value="utf-8">

<interpret
browserResultType="result"
charset = "UTF-8"
resultListStart="<!--a-->"
resultListEnd="<!--z-->"
resultItemStart="<!--m-->"
resultItemEnd="<!--n-->"
>
</search>



















No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress