1

I am developing a search engine extension for Firefox and I want to set it as (default) search engine using JavaScript. That means, if somebody wants s/he should be able to type some query into the search field or the address field and the search should be redirected to the extension. This is pretty easy to do when the target URL is a real address like http://mysearch.com (see this SO question and the relevant Mozilla Developer documentation), but it does not work if you try it with an extension URL like resource://my-search-extension/search.html. Is there some way to still achieve this, e.g. by some hook listening on query inputs in the search or address field?

P.D. You can set up a bookmark shortcut so that you can redirect a search like s keyword to an extension, but this not a convenient option in my case.

Community
  • 1
  • 1
Borhen_S
  • 11
  • 1

0 Answers0