デベロッパーモードでchrome拡張機能をインストールする。
プロジェクトの準備
例として、以下よりリポジトリをcloneしてくる。
https://github.com/GoogleChrome/chrome-extensions-samples
chrome拡張機能をインストールする。
拡張機能の画面を開く
![](http://takumi-oda.com/blog/wp-content/themes/luxeritas/images/trans.png)
デベロッパーモードを有効にする。
![](http://takumi-oda.com/blog/wp-content/themes/luxeritas/images/trans.png)
パッケージ化されていない拡張機能を読み込むというのが表示されているので、そこをクリック
![](http://takumi-oda.com/blog/wp-content/themes/luxeritas/images/trans.png)
Cloneしてきたプロジェクトには、複数の拡張機能があります。
今回はそのうちの一つのサンプルをインストールしてみます。
以下のディレクトリを選択してください。
chrome-extensions-samples\api\action
ここで、フォルダーを開くを押してください。
![](http://takumi-oda.com/blog/wp-content/themes/luxeritas/images/trans.png)
インストールされました。
![](http://takumi-oda.com/blog/wp-content/themes/luxeritas/images/trans.png)
ところで、どこが選択すべきディレクトリなのか?と迷ったら、一度エクスプローラで確認してみましょう。
以下イメージは、今回選択したディレクトリになります。
manifest.jsonがそのディレクトリ階層にありますが、ここがインストールで選択すべき階層になります。要は、manifest.jsonがあるところがインストールで選ぶべきディレクトリとなります。
![](http://takumi-oda.com/blog/wp-content/themes/luxeritas/images/trans.png)
ディスカッション
コメント一覧
まだ、コメントがありません