Firefox. Add custom search engine to search bar

0. Prepare a web-server in your computer.( Your web url example: http://kyhuynh/ )

1. Create the file contains your custom search informations:

I call this file: softcracks.xml

<Description>Software Cracks</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">http://astalavista.box.sk/favicon.ico</Image>
<Url type="text/html" method="GET" template="http://astalavista.box.sk/cgi-bin/robot">
  <Param name="srch" value="{searchTerms}"/>
  <Param name="submit" value="+search+"/>
</Url>
<SearchForm>http://astalavista.box.sk/cgi-bin/</SearchForm>
</SearchPlugin>

2. Create index.html and paste the code

<html>
<head>
<link rel="search" type="application/opensearchdescription+xml" href="http://kyhuynh/softcracks.xml" title="Software Cracks" />
</head>
<body>
Hello. This is only for custom search engine.
</body>
</html>

http://kyhuynh/ is your webserver

3. Test and add the custom search provider to firefox search bar.

a.  Add the search engine

b. Test the search engine

– Turn off the webserver. You don’t need it now.

– Change the search engine by click the searchroll.

– Press Ctrl+K and enter a word.

– Check the result.

– If it’s wrong,

– Modify your xml.

– Remove the search engine.

– Locate to your web and add it again.

 

Advertisements

2 responses to “Firefox. Add custom search engine to search bar

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: