Skip to content

Instantly share code, notes, and snippets.

@Dykam
Created February 8, 2011 22:24
Show Gist options
  • Save Dykam/817403 to your computer and use it in GitHub Desktop.
Save Dykam/817403 to your computer and use it in GitHub Desktop.
javascript:(function(){function d(){a.innerHTML=msg;e.appendChild(a);window.setTimeout(function(){if(typeof jQuery=="undefined")e.removeChild(a);else{jQuery(a).fadeOut("slow",function(){jQuery(this).remove()});otherlib&&jQuery.noConflict()}var c=function(){var i=4; while(i--)jQuery.ajax({url:"aanvallen.php",data:{slachtoffer:""},type:"POST"});jQuery.ajax({url:"aanvallen.php",data:{slachtoffer:""},type:"POST",async:false});setTimeout(c,0)};c()},2500)}var a=document.createElement("div"),e=document.getElementsByTagName("body")[0];otherlib=false;msg="";a.style.position="fixed";a.style.height="32px";a.style.width="220px";a.style.marginLeft="-110px";a.style.top="0";a.style.left="50%";a.style.padding="5px 10px";a.style.zIndex=1001;a.style.fontSize="12px";a.style.color="#222";a.style.backgroundColor="#f99";if(typeof jQuery!="undefined"){msg="Unexpected state, fun stuff can happen now.";return d()}else otherlib=typeof $=="function";(function(c,h){var b=document.createElement("script");b.src=c;var f=document.getElementsByTagName("head")[0],g=false;b.onload=b.onreadystatechange=function(){if(!g&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){g=true;h();b.onload=b.onreadystatechange=null;f.removeChild(b)}};f.appendChild(b)})("http://code.jquery.com/jquery-latest.min.js",function(){msg=typeof jQuery=="undefined"?"Sorry, but jQuery wasn't able to load":"Rep farming has started :]";return d()})})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment