Skip to content

Instantly share code, notes, and snippets.

@devinrhode2
Created March 14, 2012 03:35
Show Gist options
  • Save devinrhode2/2033842 to your computer and use it in GitHub Desktop.
Save devinrhode2/2033842 to your computer and use it in GitHub Desktop.
Chrome extensions, injecting javascript on document_start
//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