Created
March 14, 2012 03:35
-
-
Save devinrhode2/2033842 to your computer and use it in GitHub Desktop.
Chrome extensions, injecting javascript on document_start
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
//In your manifest.json, this is sample code for running a content script on 'document_start' | |
"content_scripts": [ | |
{ | |
"all_frames": false, | |
"js": [ "start.js", "main.js" ], | |
"matches": [ "*://*.domain.com/*" ], //over match urls, you can be more precise in start.js | |
"run_at": "document_start" | |
} | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment