Created
May 21, 2013 08:58
-
-
Save brothertao/5618448 to your computer and use it in GitHub Desktop.
load script to chrome page
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
(function(window) { | |
var document = window.document; | |
var loadScript = function(uri) { | |
var script = document.createElement('script'); | |
script.src = uri; | |
document.querySelector('head').appendChild(script); | |
}; | |
window.loadScript = loadScript; | |
})(window) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment