glide.search_engines API allows you to add custom search engines to Glide’s address bar and search functionality.
Methods
glide.search_engines.add()
Add or update a custom search engine.chrome_settings_overrides.search_provider object from WebExtension manifests (MDN reference).
Parameters
Configuration object for the search engine
Examples
Basic search engine Add a simple search engine for Discogs:@disc jazz records in the address bar to search Discogs.
With search suggestions
Add a search engine with autocomplete suggestions:
@gh, @github, or @git to search GitHub.
Using POST method
Create a search engine that uses POST instead of GET:
Complete Example
Define multiple search engines in your config:Updating Engines
Callingglide.search_engines.add() with the same name as an existing engine will update that engine:
GET vs POST Parameters
You can specify whether to send search parameters via GET or POST: GET method (default - appended to URL):Notes
- Search engines are persistent and remain configured even after config reloads.
- To remove a search engine, use
about:preferences#searchin the browser. - The
{searchTerms}placeholder is required in thesearch_url. - Multiple keywords allow different aliases for the same search engine.
- If both GET and POST params are specified, POST takes precedence.
- Search suggestions require the
suggest_urlparameter to be set.