user-agent-desktop
user-agent-desktop copied to clipboard
Add custom search engines
When I want to add a custom search engine that doesn't support Opensearch, like Wolfram|Alpha or Wikipedia, I am unable to do so natively. I either need to install an extension for the search engine or to use a website like https://ready.to/search/en/ to add it.
It would be nice if this functionality was built into the browser rather than needing to find some other utility do do this.
Related to #234
We could take some of the code from https://github.com/evilpie/add-custom-search-engine that is used to generate custom search engines and implement it here.
As the extension says:
With WebExtension we have to fallback to using another API that is also available to webpages:
window.external.AddSearchProvider
(See also the MDN article Adding search engines from web pages). This API requires that you use ahttp:
orhttps:
URL, and we also can't locally host a webserver with the WebExtension APIs, therefore the search engine XML file has to be uploaded somewhere.
If we were to integrate this directly into the browser, we could remove the limitation for this page only.
We could build in the page that Add custom search engine uses to build a search engine and add a link to this page to about:preferences to allow users to more easily add their own search engines.
Thoughts @evilpie?
The AddSearchProvider
method doesn't work anymore. If you can directly integrate into the browser you can just use internal APIs and save you some pain.

btw. Hi @evilpie - long time no see 👋🏻
We're recently introduce quite few more search engines and as much as we would like to add more choices this created a some problems with UI pollution:
We will have to solve this problem before we can introduce new search engines. Lets keep the issue open for future reference.