diff options
Diffstat (limited to 'files/ja/mozilla/add-ons/webextensions/api/browsersettings/newtabpageoverride/index.html')
-rw-r--r-- | files/ja/mozilla/add-ons/webextensions/api/browsersettings/newtabpageoverride/index.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/files/ja/mozilla/add-ons/webextensions/api/browsersettings/newtabpageoverride/index.html b/files/ja/mozilla/add-ons/webextensions/api/browsersettings/newtabpageoverride/index.html new file mode 100644 index 0000000000..de5eda9664 --- /dev/null +++ b/files/ja/mozilla/add-ons/webextensions/api/browsersettings/newtabpageoverride/index.html @@ -0,0 +1,27 @@ +--- +title: browserSettings.newTabPageOverride +slug: Mozilla/Add-ons/WebExtensions/API/browserSettings/newTabPageOverride +translation_of: Mozilla/Add-ons/WebExtensions/API/browserSettings/newTabPageOverride +--- +<div>{{AddonSidebar()}}</div> + +<p>{{WebExtAPIRef("types.BrowserSetting", "BrowserSetting")}} オブジェクトを使用すると「新規タブ」ページ、つまりユーザーが新しい空のタブを開いたときのページを表すURLを取得することができます。</p> + +<p>なお、これは読み取り専用の設定です。</p> + +<h2 id="ブラウザー実装状況">ブラウザー実装状況</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.api.browserSettings.newTabPageOverride", 10)}}</p> + +<h2 id="例">例</h2> + +<p>現在の新規タブURLを取得する:</p> + +<pre class="brush: js">browser.browserSettings.newTabPageOverride.get({}).then(result => { + console.log(result.value); +}); +</pre> + +<p>{{WebExtExamples}}</p> |