Skip to content

Instantly share code, notes, and snippets.

@edujr1
Created April 19, 2018 17:21
Show Gist options
  • Save edujr1/aeaed84111645531e136223cae27d27c to your computer and use it in GitHub Desktop.
Save edujr1/aeaed84111645531e136223cae27d27c to your computer and use it in GitHub Desktop.
Adicionar JQuery em uma pagina web pelo console
var script = document.createElement("SCRIPT");
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';
script.type = 'text/javascript';
script.onload = function() {
var $ = window.jQuery;
// Use $ here...
};
document.getElementsByTagName("head")[0].appendChild(script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment