Skip to content

Instantly share code, notes, and snippets.

@philrenaud
Last active November 19, 2018 17:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philrenaud/14f38d7c16125121afaf to your computer and use it in GitHub Desktop.
Save philrenaud/14f38d7c16125121afaf to your computer and use it in GitHub Desktop.
Import a few necessary packages into your browser's instance of any webpage
// add jquery:
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js';
document.head.appendChild(script);
// add underscore:
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js';
document.head.appendChild(script);
// add d3:
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js';
document.head.appendChild(script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment