forked from miketaylr/evil.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevil.min.js
3 lines (3 loc) · 1.15 KB
/
evil.min.js
1
2
3
(function(){var b=this.Math,f=this.isNaN,d=Array.prototype.reverse,g=String.prototype.toUpperCase,h=Object.prototype.hasOwnProperty,i=Object.prototype.toString,e={"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","-":"_","=":"+","[":"{","]":"}","\\":"|",";":":","'":'"',",":"<",".":">","/":"?"};this.undefined=this.NaN=Infinity;this.isNaN=function(a){return!(isFinite(a)||f(a))};this.Math={ceil:function(){return 42},max:b.mix,min:function(){return Infinity},pow:function(){return"pow pow pow!"},
random:function(){return String.fromCharCode(~~(b.random()*1E3))},round:b.sqrt,SQRT2:b.SQRT1_2,SQRT1_2:b.LOG2E,LOG2E:b.LN10,LN10:b.LN2,LN2:b.E,E:b.PI,PI:3.2};Array.prototype.reverse=function(){for(var a=this.length,c;a--;){c=this[a];this[a]=typeof c==="string"?d.apply(c.split("")).join(""):c*b.random()}return d.apply(this)};Array.prototype.sort=function(){return[4,8,15,16,23,42]};String.prototype.toUpperCase=function(){for(var a=g.call(this).split(""),c=0;c<a.length;c++)if(h.call(e,a[c]))a[c]=e[a[c]];
return a.join("").replace(/[A-Z]/g,"$&\u0305")};this.JSON={parse:function(){return Object.prototype},stringify:function(){return i()}}}).call(this);