Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bookmarklet to add jQuery to the current document
if ('jQuery' in window) {
console.log('jQuery '+jQuery.fn.jquery+' already present');
else {
var s = document.createElement('script');
s.src = '';
s.onload = function() {
console.log('jQuery '+jQuery.fn.jquery+' loaded.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.