1.Chrome の「設定」→「拡張機能」 2.デベロッパーモードをオン 3.「パッケージ化されていない拡張機能を読み込む」でディレクトリを選択 4.スイッチを有効にする
manifest.json
のcontent_scripts -> matches
から変更できます
"content_scripts": [
{
"matches": ["https://twitter.com/*",
"https://www.youtube.com/*",
"https://www.yahoo.co.jp/*"],
"exclude_globs": ["https://www.youtube.com/watch?v=IZmYn4ObRJc"],
"match_about_blank": true,
"js": ["script.js"],
"run_at": "document_start"
}
]