Last active
December 17, 2015 01:21
-
-
Save Salgat/8b95c53c23daedb1ea23 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Inject script on every page load | |
var script = document.createElement('script'); | |
script.src = chrome.extension.getURL('script.js'); | |
document.body.appendChild(script); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the tutorial - Creating a Chrome extension with automatic script injection