Skip to content

Instantly share code, notes, and snippets.

@ducin
Last active February 18, 2021 06:14
Show Gist options
  • Save ducin/7257776 to your computer and use it in GitHub Desktop.
Save ducin/7257776 to your computer and use it in GitHub Desktop.
load js script from blank page browser (execute following code in the browser console)
(function(root){
root.getScript = function(url) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
document.head.appendChild(script);
}
}(window));
getScript('http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment