diff options
Diffstat (limited to 'files/ja/mozilla/add-ons/webextensions/manifest.json/omnibox/index.html')
| -rw-r--r-- | files/ja/mozilla/add-ons/webextensions/manifest.json/omnibox/index.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/files/ja/mozilla/add-ons/webextensions/manifest.json/omnibox/index.html b/files/ja/mozilla/add-ons/webextensions/manifest.json/omnibox/index.html new file mode 100644 index 0000000000..3bc821b62e --- /dev/null +++ b/files/ja/mozilla/add-ons/webextensions/manifest.json/omnibox/index.html @@ -0,0 +1,50 @@ +--- +title: omnibox +slug: Mozilla/Add-ons/WebExtensions/manifest.json/omnibox +tags: + - Add-ons + - Extensions + - WebExtensions +translation_of: Mozilla/Add-ons/WebExtensions/manifest.json/omnibox +--- +<div>{{AddonSidebar}}</div> + +<table class="fullwidth-table standard-table"> + <tbody> + <tr> + <th scope="row" style="width: 30%;">型</th> + <td><code>Object</code></td> + </tr> + <tr> + <th scope="row">必須</th> + <td>いいえ</td> + </tr> + <tr> + <th scope="row">例</th> + <td> + <pre class="brush: json no-line-numbers"> +"omnibox": { + "keyword": "mdn" +}</pre> + </td> + </tr> + </tbody> +</table> + +<p><code>omnibox</code> を使って拡張機能のための omnibox キーワードを定義します。</p> + +<p>ユーザーがブラウザーのアドレスバーにキーワードを入力する時、スペースに続いて、続きの文字が <code><a href="/ja/docs/Mozilla/Add-ons/WebExtensions/API/omnibox">omnibox</a></code> API を使って拡張機能に送られます。拡張機能は自身のサジェストを使ってアドレスバーのドロップダウンサジェストのリストを生成できます。</p> + +<p>2つ以上の拡張機能が同じキーワードを定義している場合、最後にインストールされた拡張機能がキーワードを管理します。以前にインストールされたあらゆる拡張機能はもう <code>omnibox</code> API を使えません。</p> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush: json no-line-numbers">"omnibox": { + "keyword": "mdn" +}</pre> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2> + +<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p> + +<p>{{Compat("webextensions.manifest.omnibox")}}</p> |
