Labs/Ubiquity/Writing A Search Command

< Labs‎ | Ubiquity
Revision as of 01:29, 21 October 2009 by FreakCERS (talk | contribs) (Documentation on writing a search command)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation of CmdUtils.makeSearchCommand

name

The name of the search command, ie: "Google"

url

The url of the search provider, with the string "{QUERY}" (without the quotes representing the search word, ie: "http://www.google.com/search?q={QUERY}". If the provider uses POST instead of GET, see #postData.

icon

The icon used for the search command. If not provided, the favicon (favicon.ico) located at the root of the search providers domain will be used instead.

description

A description of your search command. If not provided, one will be generated from a localized template and the name of your search command.

preview

charset

postData

parser

container

title

preview

thumbnail

maxResults

href

baseurl

type

Examples