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(window.console.info)window.console.info(e); 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")t.call(this)}; i=document.getElementsByTagName("script")[0]; s=i.parentElement?i.parentElement:i.parent; s.insertBefore(r, i)}; n("//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js", 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(window.console.info) window.console.info(msg); 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") fn.call(this) }; sibling = document.getElementsByTagName("script")[0]; root = sibling.parentElement ? sibling.parentElement : sibling.parent; root.insertBefore(node, sibling); }; load("//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js", function(){ $$=window.module.exports; window.module=_module; info("$$.fn.jquery = \""+$$.fn.jquery+"\""); }); })();


Comment

___

No comments.

Write one


Last articles

___

miniature-article

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

miniature-article

First Post!

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

Load more Scroll top