Questions tagged [omnibox]

The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.

The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.

When the user enters your extension's keyword, the user starts interacting solely with your extension. Each keystroke is sent to your extension, and you can provide suggestions in response.

The suggestions can be richly formatted in a variety of ways. When the user accepts a suggestion, your extension is notified and can take action.

Useful links:

50 questions
14
votes
1 answer

Chrome extension using multiple omnibox keywords

i am trying to create a Google Chrome extension and i want it to listen to multiple keywords from the Omnibox. To make it short, i want to know whether these two things are possible: defining multiple omnibox keywords for one extension in the…
Jacer Omri
  • 1,723
  • 22
  • 37
13
votes
1 answer

Google Chrome Omnibox API -- automatically select first option on enter

So I'm trying to build a simple Omnibox extension for Chrome for personal use. It works like any other Omnibox extension: you enter the extension keyword and press tab, which gives the extension control of the omnibox. Then you type in a phrase or…
Felix Mc
  • 503
  • 1
  • 5
  • 16
11
votes
3 answers

Let the user choose the keyword for my omnibox chrome extension

I just created a chrome extension using the omnibox api. "omnibox": { "keyword" : "a" }, I found out that it is not possible to use multible keywords or let the user choose a keyword for my extension although the extension is listed on the search…
HaNdTriX
  • 28,732
  • 11
  • 78
  • 85
9
votes
1 answer

How to steal focus from the omnibox in a Chrome extension on the new tab page?

I'm making a Chrome extension that involves putting a text input on the new tab page, and immediately giving focus to that input text when the new tab page loads. After being unable to get focus using traditional methods (e.g. focus()), I stumbled…
8
votes
0 answers

How to define a trigger keyword in OpenSearchDescription xml file?

I am trying to get an open search definition to work on subdomains. I have added the correct line in the of the html. Example:
para
  • 684
  • 5
  • 19
7
votes
0 answers

Google Chrome Omnibar—Prioritize Bookmarks Over Search Suggestions

My hands have a tremor that make it difficult for me to use a mouse precisely. [Not impossible, but I'm clumsy enough with the pointer, that I mostly just use the keyboard.] For that reason, when browsing the Web, I use a variety of bookmarklets…
Colin Fraizer
  • 532
  • 4
  • 14
6
votes
2 answers

chrome omnibox how to add the search on domain

How one configure his web site to let users search only on his domain using omnibox? Example: type youtube.com then press tab or type yahoo.com then press trying with vimeo wouldn't work I didn't find anyhing in the source code.
Jonathan de M.
  • 9,721
  • 8
  • 47
  • 72
6
votes
1 answer

Add keypress event to the omnibox in a chrome extension

Is it somehow possible to listen to keyevents (keyup, keydown, keypress) in the chrome omnibox? So far I just found: chrome.omnibox.onInputStarted.addListener(function() {...}); chrome.omnibox.onInputChanged.addListener(function(string text,…
HaNdTriX
  • 28,732
  • 11
  • 78
  • 85
5
votes
0 answers

How does Google Chrome Omnibox autocomplete work?

The comment in the following post is particularly helpful in understanding part of the algorithm. How does Chrome update URL bar completions? Yet questions remain here. I did some experiment on Chrome: When I input "eddit", it only suggests…
Xinquan
  • 121
  • 1
  • 5
4
votes
1 answer

Entering omnibox-mode programmatically

I want an extension to be controlled by the Omnibox. The chrome.omnibox API lets me register a keyword, but that means a lot of clicking or typing to get to the extension. For example, I have to Ctrl+L to select the omnibox, then type some letters…
Eli Bendersky
  • 263,248
  • 89
  • 350
  • 412
4
votes
4 answers

Using Chrome omnibox for quick translation

I just recently realized there's quick commands for the Omnibox, I'm wondering if theres any commands for Google translate. Say I want to translate from Chinese to Swedish, is it possible to write something similar to 你好 --from chinese --to swedish…
hacke
  • 279
  • 1
  • 6
  • 20
4
votes
0 answers

Modifying Omnibox suggestion priority in Chrome Extension

I am writing a Google Chrome extension that will use the keyword \\ as an Omnibox trigger. This is working well, and I am achieving most of the desired result, except that the priority of the Omnibox always suggests file:// before suggesting my…
stupac8908
  • 151
  • 4
3
votes
0 answers

How to use customized icon for Firefox omnibox search suggestion

I want to my Firefox extension could use Firefox omnibox and return user some suggestions when input changed. At current stage, the omnibox could give me some suggestions, but the icon of the suggestion is still default instead of icon of the…
3
votes
1 answer

Chrome Omnibox Special Characters Throw Error

I'm writing a basic Chrome Extension to add suggestions in the Omnibox from a JSON feed. Nearly all queries entered will display results as expected in the suggestions dropdown. However, it seems that whenever an ampersand (&) is returned as part of…
Tyler
  • 889
  • 1
  • 11
  • 17
3
votes
1 answer

Listen to chrome omnibox events/text without any keyword triggering

I learnt how to invoke my extension's background js by typing a specific keyword in the omnibox. But I need to enable my extension to listen to the text typed in the omnibox without the help of any keyword. Example: If user types, abc or abcd or…
Ivin
  • 4,435
  • 8
  • 46
  • 65
1
2 3 4