SDB:Firefox custom search

Jump to: navigation, search

This article describes how to set up Firefox to use Google's custom search in the search bar. This gives you the power of Google to search within the wiki. However, now there is also a openSUSE wiki search plugin available for Firefox. This has the same behaviour as the wiki's search engine. (When page matches, you go there directly). Refer to external links below

Tested on openSUSE

Recommended articles


Using Google to search your web site is easy. Type in search field for instance, wireless and you have power of Google pointing to articles about wireless on this wiki. Though, there is a better way.

Thanks to Firefox custom search you can skip typing every time.


Look in /usr/lib/firefox/searchplugins and you will see number of files:

* amazondotcom.xml
* answers.xml
* creativecommons.xml
* eBay.xml
* google-opensuse.xml
* google.xml
* NovellCool.gif
* NovellCool.src
* NovellDocumentation.gif
* NovellDocumentation.src
* NovellSupport.xml
* opensuse-software.xml
* yahoo.xml 

Each <something>.xml correspond to one of search engines listed in top right corner search field starting with Google.

The google-opensuse.xml is the new one. It is edited copy of google.xml so it should not be a problem to create custom search. Here is one where new created search will act like you have typed in search field and then your search term.

<SearchPlugin xmlns="">
<ShortName>openSUSE Wiki</ShortName>
<Description>openSUSE Wiki with Google Search</Description>
<Image width="16" height="16">data:...
<Url type="application/x-suggestions+json" method="GET" template="
<Url type="text/html" method="GET" template="">
  <Param name="q" value="{searchTerms}"/>

There is skipped image data in section:

<Image width="16" height="16">data:...

as it is a bunch of bytes that belong to icon image. You can leave Google icon, or incorporate openSUSE icon from opensuse-software.xml.

Here is final effect where you can see that you typed in top right wireless and Google actually received wireless and listed results.


Back to Firefox | SDB:HOWTOs

External links

Firefox openSUSE wiki (en) search plugin