1
Fork 0

Added chrome extension basics

This commit is contained in:
Jake Howard 2015-08-20 09:39:37 +01:00
parent 2f49f338b7
commit 1b7104c4a4
2 changed files with 20 additions and 1 deletions

19
chrome/manifest.json Normal file
View 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"]
}
],
}

View File

@ -7,7 +7,7 @@
"create-dirs": "mkdir -p build/assets build/lib",
"build-extensions": "",
"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",
"copy-firefox": "",
"copy-chrome": "",