-
Notifications
You must be signed in to change notification settings - Fork 51
/
evil.min.js
1 lines (1 loc) · 2.83 KB
/
evil.min.js
1
(function(){var Math=this.Math,reverse=[].reverse,slice=[].slice,getClass={}.toString,toUpperCase="".toUpperCase,random=Math.random,document=this.document,write=document&&document.write,location=this.location,search=location&&location.search,alert=this.alert,confirm=this.confirm,Shift=[["`","~"],["1","!"],["2","@"],["3","#"],["4","$"],["5","%"],["6","^"],["7","&"],["8","*"],["9","("],["-","_"],["=","+"],["[","{"],["]","}"],["\\","|"],[";",":"],["'",'"'],[",","<"],[".",">"],["/","?"]],Invert=[["!","¡"],['"',"„"],["&","⅋"],["'",","],["(",")"],[".","˙"],["3","Ɛ"],["4","ᔭ"],["6","9"],["7","Ɫ"],[";","؛"],["<",">"],["?","¿"],["A","∀"],["B","ဒ"],["C","Ↄ"],["D","◖"],["E","Ǝ"],["F","Ⅎ"],["G","⅁"],["J","ſ"],["K","⋊"],["L","⅂"],["M","W"],["N","ᴎ"],["P","Ԁ"],["Q","Ό"],["R","ᴚ"],["T","⊥"],["U","∩"],["V","ᴧ"],["Y","⅄"],["[","]"],["_","‾"],["a","ɐ"],["b","q"],["c","ɔ"],["d","p"],["e","ǝ"],["f","ɟ"],["g","ƃ"],["h","ɥ"],["i","ı"],["j","ɾ"],["k","ʞ"],["l","ʃ"],["m","ɯ"],["n","u"],["r","ɹ"],["t","ʇ"],["v","ʌ"],["w","ʍ"],["y","ʎ"],["{","}"],["‿","⁀"],["⁅","⁆"],["∴","∵"]],invert=function(e){var t="",n,r,i;for(n=e.length;n--;){i=e.charAt(n);for(r=Invert.length;r--;)if(Invert[r][0]==i){i=Invert[r][1];break}t+=i}return t},XMLHttpRequest=this.XMLHttpRequest=function(){this.readyState=Infinity};XMLHttpRequest.prototype.open=XMLHttpRequest.prototype.send=function(){},this.undefined=this.NaN=1/0,this.Infinity="∞",this.alert=function(e){alert(invert(e))},this.confirm=function(e){confirm(invert(e))},this.prompt=this.open,this.isNaN=function(e){return!0},typeof search=="string"&&eval(decodeURIComponent(search.replace("?",""))),document&&write&&(document.write=function(e){e="<marquee><blink>"+e+"</blink></marquee>",write.call(document,e),write.call(document,e)}),this.Math={ceil:function(){return 42},max:Math.min,min:function(){return Infinity},pow:function(){return"pow pow pow!"},random:function(){return String.fromCharCode(~~(random()*1e3))},round:Math.sqrt,SQRT2:Math.SQRT1_2,SQRT1_2:Math.LOG2E,LOG2E:Math.LN10,LN10:Math.LN2,LN2:Math.E,E:Math.PI,PI:3.2},Array.prototype.reverse=function(){for(var e=this.length,t;e--;)t=this[e],this[e]=typeof t=="string"?reverse.call(t.split("")).join(""):t*random();return reverse.call(this)},Array.prototype.sort=function(){for(var e,t,n=this.length;n;)e=~~(random()*n),t=this[--n],this[n]=this[e],this[e]=t;return this},String.prototype.toUpperCase=function(){var e=toUpperCase.call(this).split(""),t,n,r;for(t=e.length;t--;)for(n=Shift.length;n--;)r=Shift[n],r[0]==e[t]&&(e[t]=r[1]);return e.split("").replace(/([A-Z])/g,"$1̅")},typeof jQuery=="function"&&jQuery.ajaxSetup({async:!1}),this.JSON={parse:function(){return{}},stringify:function(e){return getClass.call(e)}},typeof setTimeout!="undefined"&&setTimeout(function(){location&&(location.hash="#blowme")},2e4)}).call(this);