OK before we get started this requires Firefox 2.0 And what we are aiming for is to get something that looks like this:
Now for our example we are going to make one of these for YouTube. And it is quite simple really.
OK start off by going to your Firefox directory ("C:\Program Files\Mozilla Firefox")
Then open the folder "searchplugins" You should be looking at a folder like this:
Now in this folder create a new file and call it youtube.xml
Now open this file and paste the following code into it:
Code:
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>ENGINE NAME</ShortName>
<Description>ENGINE DESCRIPTION</Description>
<InputEncoding>ISO-8859-1</InputEncoding>
<Image width="16" height="16">IMAGEDATA</Image>
<Url type="text/html" method="GET" template="URL">
<Param name="PARAM1" value="{searchTerms}"/>
<Param name="PARAM2" value="VARIABLE"/>
</Url>
<SearchForm>ENDURL</SearchForm>
</SearchPlugin>
We are going to be customizeing the bits in red.
ENGINE NAME = The name you want to appear on the search bar in FireFox.
ENGINE DESCRIPTION = Just a short description what the engine will be used for. Not very important.
IMAGE DATA = we will put icon data here soon.
URL = This will be a URL of the actual search PAGE
PARAM1/2 = These will be variables that the search engine will require to work.
ENDURL = just a URL of the actual website.
OK lets get customizeing!
For Engine name we will use "Youtube.com"
For Engine Description just put "Search for Videos on Youtube.com" or something.
Now for the imagedata we are going to convert an ico image into a coded string for XML to understand.
For this go to http://software.hixie.ch/utilities/cgi/data/data and then put in the URL of youtubes icon image (to find a websites icon image just put "/favicon.ico" on to the end of the url)
Also on the oage check the box that says "base64"
Now when you hit generate you should be sent to a page with a huge link, Click it then copy the URL and put that in the IMAGEDATA bit of your xml file.
You should now have something that looks like this:
Code:
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Youtube.com</ShortName>
<Description>Seach for Videos on Youtube.com</Description>
<InputEncoding>ISO-8859-1</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAABMLAAATCwAAAAAAAAAAAAD%2F%2F%2F%2F%2F%2F%2F%2F%2F%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/html" method="GET" template="URL">
<Param name="PARAM1" value="{searchTerms}"/>
<Param name="PARAM2" value="VARIABLE"/>
</Url>
<SearchForm>ENDURL</SearchForm>
</SearchPlugin>
OK lets continue with the other bits
Now to get the SEARCH URL go to www.youtube.com and search for something.
You should be given something like this:
http://www.youtube.com/results?search_query=Marlo+is+lol&search=Search
DarkRed = main URL
Red = Search Page
Pink = Search Parameters
Beige = Search results
By looking at this URL we can tell that when you search Youtube you get 2 Parameters. The search you typed and a fixed value called "Search" So in our code we type this:
Code:
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Youtube.com</ShortName>
<Description>Seach for Videos on Youtube.com</Description>
<InputEncoding>ISO-8859-1</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAABMLAAATCwAAAAAAAAAAAAD%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F4OD%2F%2F9paf%2F%2Fbm7%2F%2F2Fh%2F%2F9ZWf%2F%2FWlr%2F%2F1pa%2F%2F9WVv%2F%2FZGT%2F%2F3Bw%2F%2F9jY%2F%2F%2FgoL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F11d%2F%2F8sLP%2F%2FQUH%2F%2Fygo%2F%2F84OP%2F%2FRET%2F%2Fy4u%2F%2F8xMf%2F%2FUVH%2F%2Fy4u%2F%2F8PD%2F%2F%2FZWX%2F%2Fx0d%2F%2F9aWv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F88PP%2F%2FCgr%2F%2F%2F%2F%2F%2F%2F8zM%2F%2F%2F1NT%2F%2F%2F%2F%2F%2F%2F%2Blpf%2F%2Fubn%2F%2F%2F%2F%2F%2F%2F%2Burv%2F%2FfHz%2F%2F%2F%2F%2F%2F%2F%2Fg4P%2F%2FFhb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2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F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwAAAP%2F%2F%2F%2F%2F%2FAAAA%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D</Image>
<Url type="text/html" method="GET" template="http://www.youtube.com/results?">
<Param name="search_query" value="{searchTerms}"/>
<Param name="search" value="Search"/>
</Url>
<SearchForm>http://youtube.com</SearchForm>
</SearchPlugin>
Just like to point out that "{searchTerms}" is what yuo type in when you use the firefox search engine.
OK last section ENDURL just put www.youtube.com and you're all done!
just save the XML file and restart firefox.