Use jQuery Anywhere


Have you ever wanted to use jQuery in your browser's developer console on a site that didn't have it? Set up this bookmark in your bookmark bar so that you have quick access to jQuery on any site in the $$ global variable.

Minified Bookmark Code

javascript:(function(){var e=window.module||null; window.module={exports:{}}; var t=function(e){if(!window.console)return; if(; else if(window.console.log)window.console.log(e)}; var n=function(e, t){var n, r, i, s; n=false; r=document.createElement("script"); r.type="text/javascript"; r.src=e; r.onload=r.onreadystatechange=function(){if(n)return; if(this.readyState && this.readyState!="complete" && this.readyState!="loaded")return; n=true; if(typeof t=="function")}; i=document.getElementsByTagName("script")[0]; s=i.parentElement?i.parentElement:i.parent; s.insertBefore(r, i)}; n("//", function(){$$=window.module.exports; window.module=e; t('$$.fn.jquery = "'+$$.fn.jquery+'"')})})()

Original Code

(function(){ var _module=window.module||null; window.module={exports:{}}; var info = function(msg){ if(!window.console) return; if(; else if(window.console.log) window.console.log(msg); }; var load = function(url, fn){ var loaded, node, sibling, root; loaded = false; node = document.createElement("script"); node.type = "text/javascript"; node.src = url; node.onload = node.onreadystatechange = function(){ if(loaded) return; if(this.readyState && this.readyState!="complete" && this.readyState!="loaded") return; loaded = true; if(typeof fn == "function") }; sibling = document.getElementsByTagName("script")[0]; root = sibling.parentElement ? sibling.parentElement : sibling.parent; root.insertBefore(node, sibling); }; load("//", function(){ $$=window.module.exports; window.module=_module; info("$$.fn.jquery = \""+$$.fn.jquery+"\""); }); })();



No comments.

Write one

Last articles



Use jQuery Anywhere New

Have you ever wanted to use jQuery in your browser's developer console on a site that didn't have it...view more


First Post!

I'm optimistic that I'll be gathering many of my personal projects here. Cheers!

Load more Scroll top