Skip to content

Instantly share code, notes, and snippets.

@jcutrell
Created December 5, 2010 23:38
Show Gist options
  • Save jcutrell/729604 to your computer and use it in GitHub Desktop.
Save jcutrell/729604 to your computer and use it in GitHub Desktop.
crosshairs
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.4.4",function($,L){$("<div class='vert'></div><div class='horz'></div>").appendTo("body");$(".vert").css({width:"1px",height:"100%",position:"fixed",top:"0px",left:"0px","background-color":"#232323"});$(".horz").css({height:"1px",width:"100%",top:"0px",left:"0px",position:"fixed","background-color":"#232323"});$("html").mousemove(function(a){$(".vert").css({left:a.pageX-$(window).scrollLeft()});$(".horz").css({top:a.pageY-$(window).scrollTop()})});});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment