0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ChromeExtention:新しいタブに自作HTMLを指定する

Posted at
  • ディレクトリ構成
    NewTab
    ├── index.html
    └── manifest.json

  • manifest.json

    {
    "manifest_version": 2, 
    "name": "Newtab",
    "version": "1.0",
    "permissions": [
    ],
    "chrome_url_overrides" : {
        "newtab": "index.html"
    }
    }
    
  • index.html

    内容はお好みで
    
  • 設定方法

    1. Chromeでchrome://extensions/にアクセス
    2. 「デベロッパーモード」をONにする
    3. 「パッケージ化されていない拡張機能を読み込む」をクリック
    4. 作成したディレクトリを選択
  • 参考:manifest.jsonの中身

    • manifest_version:現状有効なバージョンが2しかないので何も考えずに2で。
    • name:拡張機能の名称。45文字まで。
    • version:最大4つの数値を dot で区切る。各数値は0~65535の範囲。
    • permissions:ChromeAPIを使うときに設定するらしい。
    • chrome_url_overrides:chrome://newtabにアクセスした際に指定のファイルを表示する
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?