Skip to content

Instantly share code, notes, and snippets.

@crismanNoble
Created November 10, 2014 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crismanNoble/d94f7bdc3e6a613f3cbb to your computer and use it in GitHub Desktop.
Save crismanNoble/d94f7bdc3e6a613f3cbb to your computer and use it in GitHub Desktop.
A quick scaffold to create a bookmarklet which will fetch external javascript
(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