Last active
August 29, 2015 14:02
-
-
Save angusjune/6352c7d57302904d5b3a to your computer and use it in GitHub Desktop.
Chrome Extension Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Click to inject js into page | |
chrome.browserAction.onClicked.addListener(function(tab) { | |
chrometabs.executeScript(null, {file:'js/injector.js'}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"app": { | |
"background": { | |
"scripts": ["background.js"] | |
} | |
}, | |
"manifest_version": 2, | |
"name": "My Extension", | |
"version": "versionString", | |
"default_locale": "en", | |
"description": "A plain text description", | |
"icons": { | |
"16": "images/icon16.png", | |
"48": "images/icon48.png", | |
"128": "images/icon128.png" | |
}, | |
"browser_action": { | |
"default_icon": { | |
"19": "images/icon19.png", | |
"38": "images/icon38.png" | |
}, | |
"default_title": "Extension Title", | |
"default_popup": "popup.html" | |
}, | |
"page_action": { | |
"default_icon": { | |
"19": "images/icon19.png", | |
"38": "images/icon38.png" | |
}, | |
"default_title": "Extension Title", | |
"default_popup": "popup.html" | |
}, | |
"background": { | |
"scripts": ["background.js"] | |
}, | |
"content_scripts": [ | |
{ | |
"matches": ["http://www.google.com/*"], | |
"css": ["mystyles.css"], | |
"js": ["jquery.js", "myscript.js"] | |
} | |
], | |
"options_page": "options.html", | |
"permissions": [ | |
"*://www.google.com/*" | |
], | |
"web_accessible_resources": [ | |
"images/*.png" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment