-
ディレクトリ構成
NewTab
├── index.html
└── manifest.json -
manifest.json
{ "manifest_version": 2, "name": "Newtab", "version": "1.0", "permissions": [ ], "chrome_url_overrides" : { "newtab": "index.html" } }
-
index.html
内容はお好みで
-
設定方法
- Chromeでchrome://extensions/にアクセス
- 「デベロッパーモード」をONにする
- 「パッケージ化されていない拡張機能を読み込む」をクリック
- 作成したディレクトリを選択
-
参考:manifest.jsonの中身
- manifest_version:現状有効なバージョンが2しかないので何も考えずに2で。
- name:拡張機能の名称。45文字まで。
- version:最大4つの数値を dot で区切る。各数値は0~65535の範囲。
- permissions:ChromeAPIを使うときに設定するらしい。
- chrome_url_overrides:chrome://newtabにアクセスした際に指定のファイルを表示する
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme