Created
November 10, 2014 16:41
-
-
Save crismanNoble/d94f7bdc3e6a613f3cbb to your computer and use it in GitHub Desktop.
A quick scaffold to create a bookmarklet which will fetch external javascript
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(){ | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = '{{scriptSrc}}' + (Math.random()); | |
document.querySelector('head').appendChild(script); | |
}})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment