Add a custom search engine
browser_add_search_engineInstall a custom search engine in Firefox by supplying a name and URL template containing {searchTerms}, enabling searches through your chosen provider.
Instructions
Install a user-defined search engine. MEASURED: SearchService from moz-src:///toolkit/components/search/SearchService.sys.mjs exposes addUserEngine(formInfo) — the simplest of the four add paths (addOpenSearchEngine needs a full OpenSearch URL, addSearchEngine needs an engine object, addEngineFromExtension needs an add-on). formInfo takes name plus a URL template containing {searchTerms}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL template containing {searchTerms} | |
| name | Yes | Engine display name |