Skip to content

Instantly share code, notes, and snippets.

@adong
Created October 9, 2018 21:17
Show Gist options
  • Save adong/6ea7fba4a1ba55baa7edce791903dc51 to your computer and use it in GitHub Desktop.
Save adong/6ea7fba4a1ba55baa7edce791903dc51 to your computer and use it in GitHub Desktop.
Load external javascript lib from dev tool
(function() {
var u = 'http://example.com/bookmarklet.js';
u = 'https://cdn.jsdelivr.net/npm/[email protected]/build/circular-json.node.min.js';
var s = document.createElement('script');
s.type = 'text/javascript';
s.charset = 'utf-8';
s.src = u;
document.body.appendChild(s);
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment