topSites
topSites API を使うと、ユーザーがよく訪れるページをを含む配列を取得できます。
ブラウザーはユーザーがこれらの場所に簡単に戻れるようにこれを維持します。Firefoxでは既定で「新しいタブ」ページには最もよく訪れるページのリストが提供されます。
topSites API を使うには "topSites" の API パーミッション必要です。
型
topSites.MostVisitedURL
- ウェブサイトのタイトルと URLを含むオブジェクト。
Methods
topSites.get()
- ブラウザーの「新しいタブ」ページに載っているすべてのサイトの配列を取得します。ここで返されるサイトの数はブラウザー固有であり、返されるサイトは、ブラウザー履歴に基づいてユーザー固有であることに注意してください。
ブラウザ実装状況
BCD tables only load in the browser
Example extensions
Acknowledgements
This API is based on Chromium's chrome.topSites
API.
Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.