このページは大阪弁化フィルタによって翻訳生成されたんですわ。

翻訳前ページへ


chrome.topSites - Google Chrome
The Wayback Machine - http://web.archive.org/web/20130119085831/http://developer.chrome.com/extensions/topSites.html

Google Chrome Extensions

chrome.topSites

Notes

The top sites module allows access to the top sites that are displayed on the new tab page.

Manifest

You must declare the "topSites" permission in your extension's manifest to use this API.

{
  "name": "My extension",
  ...
  "permissions": [
    "topSites",
  ],
  ...
}

Examples

You can find samples of this API in Samples.

API Reference: chrome.topSites

Types

MostVisitedURL

( object )
An object encapsulating a most visited URL, such as the URLs on the new tab page.

Properties of MostVisitedURL

url ( string )
The most visited URL.
title ( string )
The title of the page

Methods

get

chrome.topSites.get(function callback)

Gets a list of top sites.

Parameters

callback ( function )

Callback function

The callback parameter should specify a function that looks like this:

function(array of MostVisitedURL data) {...};
data ( array of MostVisitedURL )

Sample Extensions that use chrome.topSites

  • NTP prototyping extension – extension to prototype new NTP designs