Skip to content

Instantly share code, notes, and snippets.

@takatama
Last active Jan 1, 2016
Embed
What would you like to do?
Webページ上でスクリプトを実行するための Chrome 拡張機能
{
"manifest_version": 2,
"name": "Name of this extension",
"version": "0.1", // 新しい拡張を公開するたびに上げていく
"description": "Description of this extension",
"icons": {
"128": "icon128.png" // chrome://extensions に表示されるアイコン。128x128
},
"page_action": {
"default_icon": "icon128.png", // アドレスバーに表示されるアイコン。19x19, 38x38 を準備しておくべき?
"default_title": "Tooltip for the page action icon"
},
"permissions": [
"tabs",
"https://www.google.com/maps/preview" // スクリプトを実行したいURLを記載していく
],
"background": {
"scripts": ["background.js"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment