Added chrome extension basics
This commit is contained in:
parent
2f49f338b7
commit
1b7104c4a4
2 changed files with 20 additions and 1 deletions
19
chrome/manifest.json
Normal file
19
chrome/manifest.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"manifest_version": 2,
|
||||||
|
|
||||||
|
"name": "Getting started example",
|
||||||
|
"description": "This extension shows a Google Image search result for the current page",
|
||||||
|
"version": "ALPHA",
|
||||||
|
|
||||||
|
"browser_action": {
|
||||||
|
"default_icon": "icon.png",
|
||||||
|
"default_popup": "popup.html"
|
||||||
|
},
|
||||||
|
"content_scripts": [
|
||||||
|
{
|
||||||
|
"matches": ["http://www.google.com/*"],
|
||||||
|
"css": ["mystyles.css"],
|
||||||
|
"js": ["jquery.js", "myscript.js"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
}
|
|
@ -7,7 +7,7 @@
|
||||||
"create-dirs": "mkdir -p build/assets build/lib",
|
"create-dirs": "mkdir -p build/assets build/lib",
|
||||||
"build-extensions": "",
|
"build-extensions": "",
|
||||||
"build-firefox": "cd firefox/ && jpm xpi",
|
"build-firefox": "cd firefox/ && jpm xpi",
|
||||||
"build-chrome": "",
|
"build-chrome": "chromium-browser --pack-extension=./ --pack-extension-key=key.pem",
|
||||||
"build-js": "browserify -t reactify src/index.js -o build/index.js",
|
"build-js": "browserify -t reactify src/index.js -o build/index.js",
|
||||||
"copy-firefox": "",
|
"copy-firefox": "",
|
||||||
"copy-chrome": "",
|
"copy-chrome": "",
|
||||||
|
|
Reference in a new issue