Last active
November 19, 2018 17:15
-
-
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
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
// 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