Skip to content

Instantly share code, notes, and snippets.

@alejandrocoding
Created June 12, 2020 23:24
Show Gist options
  • Save alejandrocoding/e272fc5291ac3ec8e96f52c2639ca2f0 to your computer and use it in GitHub Desktop.
Save alejandrocoding/e272fc5291ac3ec8e96f52c2639ca2f0 to your computer and use it in GitHub Desktop.
Chrome Extension with background and contentScript entries
{
"name": "My Extension",
"version": "1.0.0",
"description": "Description here",
"manifest_version": 2,
"permissions": ["webNavigation", "tabs"],
"page_action": {
"default_popup": "index.html"
},
"background": {
"scripts": ["background.js", "runtime.js"]
},
"content_scripts": [
{
"matches": ["*://*.github.com/*"],
"js": ["contentScript.js", "runtime.js"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment