このブログの中を検索する

2012/03/21

Google Chrome拡張機能(アドオン)の作り方

title: Google Chrome拡張機能(アドオン)の作り方
url: http://code.google.com/chrome/extensions/getstarted.html

snippet:

-----引用-----
  1. Create a folder somewhere on your computer to contain your extension's code.
  2. Inside your extension's folder, create a text file called manifest.json, and put this in it:
    {
      "name": "My First Extension",
      "version": "1.0",
      "description": "The first extension that I made.",
      "browser_action": {
        "default_icon": "icon.png"
      },
      "permissions": [
        "http://api.flickr.com/"
      ]
    }
  3. Copy this icon to the same folder:

    Download icon.png
  4. Load the extension.
    1. Bring up the extensions management page by clicking the wrench icon  and choosing Tools > Extensions.
    2. If Developer mode has a + by it, click the + to add developer information to the page. The + changes to a -, and more buttons and information appear.
    3. Click the Load unpacked extension button. A file dialog appears.
    4. In the file dialog, navigate to your extension's folder and click OK.
If your extension is valid, its icon appears next to the address bar, and information about the extension appears in the extensions page, as the following screenshot shows.

-----引用-----

0 件のコメント:

コメントを投稿