Last active
August 29, 2015 14:26
-
-
Save JavaScript-Packer/9ed7090f4feefe908fa4 to your computer and use it in GitHub Desktop.
http://www.whak.ca/packer/smilies.htm Working on a script generator that will turn JavaScript source codes into silly shapes, here is a sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var WHAK= | |
'var C="charCodeAt",G=eval,'+ | |
'I="indexOf",Q="charAt",U=32768,M=G('+ | |
'"Math.pow");_$={_:"WHAK+com/PaCker=BDEFGIJL'+ | |
'MNOQRSTUVXYZbdfghijlnpqstuvwxyz0123456789",_f:Str'+ | |
'ing.fromCharCode,$:function(r){if(null==r)return"";v'+ | |
'ar a,e,t,o,h,c,f="",n=0,i=0,d=_$._f;for(r=r.replace(/[^A-'+ | |
'Za-z0-9+/=]/g,"");i<r.length;)e=_$._[I](r[Q](i++)),t=_$._[I]('+ | |
'r[Q](i++)),h=_$._[I](r[Q](i++)),c=_$._[I](r[Q](i++)),e=e<<2|t>>4,'+ | |
't=(15&t)<<4|h>>2,o=(3&h)<<6|c,0==n%2?(a=e<<8,64!=h&&(f+=d(a|t)),64!'+ | |
'=c&&(a=o<<8)):(f+=d(a|e),64!=h&&(a=t<<8),64!=c&&(f+=d(a|o))),n+=3;retur'+ | |
'n _$.d(f)},d:function(r){if(null==r)return"";if(""==r)return null;for(var'+ | |
' a,e,t,o,h,c=[],f=4,n=4,i=3,d="",u="",A=_$._f,l=r[C](0),w=U,p=1,u=0;3>u;u+='+ | |
'1)c[u]=u;for(d=0'+',t=M(2,2),o=1;o!=t;)e=l&w,w>>=1,0==w&&('+'w=U,l=r[C](p++))'+ | |
',d|=(e>0?1:0)*o,'+ 'o<<=1;switch(d){case 0:for(d=0,t=M(2,'+ '8),o=1;o!=t;)e=l'+ | |
'&w,w>>=1,0==w&&'+ '(w=U,l=r[C](p++)),d|=(e>0?1:0)*o,o<'+ '<=1;h=A(d);brea'+ | |
'k;case 1:for(d=0'+ ',t=M(2,16),o=1;o!=t;)e=l&w,w>>=1,0='+ '=w&&(w=U,l=r[C]('+ | |
'p++)),d|=(e>0?1:'+ '0)*o,o<<=1;h=A(d);break;case 2:retu'+ 'rn""}for(a=u=c[3'+ | |
']=h;;){if(p>r.len'+ 'gth)return"";for(d=0,t=M(2,i),o=1;o'+ '!=t;)e=l&w,w>>=1,'+ | |
'0==w&&(w=U,l=r[C]'+ '(p++)),d|=(e>0?1:0)*o,o<<=1;switch('+ 'h=d){case 0:for(d'+ | |
'=0,t=M(2,8),o=1;o!'+ '=t;)e=l&w,w>>=1,0==w&&(w=U,l=r[C](p++'+ ')),d|=(e>0?1:0)*o,'+ | |
'o<<=1;c[n++]=A(d),h=n-1,f--;break;case 1:for(d=0,t=M(2,16),o=1;o!=t;)e=l&w,w>>=1,0='+ | |
'=w&&(w=U,l=r[C](p++)),d|=(e>0?1:0)*o,o<<=1;c[n++]=A(d),h=n-1,f--;break;case 2:retur'+ | |
'n u}if(0==f&&(f=M(2,i),i++),c[h])d=c[h];else{if(h!==n)return null;d=a+a[Q](0)}u+=d,'+ | |
'c[n++]=a+d[Q](0),f--,a=d,0==f&&(f=M(2,i),i++)}}};/* www.WHAK.com */;G(_$.$(\'oMItS'+ | |
'VuVCVdV6fWHWWh+1+ktHk1cnKakGWiVHBAGaW0VcWhhHq3jaPqWKVolhWz/uWoXBH0MVAkWwbJ/hWsAZK'+ | |
'cXaW/ahkWFthHqrn'+ 'XmYiPWehWoWCivGW'+ | |
'/VWJGartHRWTXUA'+ '=WrVKjWADGWxi1B'+ | |
'TeO36kYYbpCoW/vJ'+ 'v=C/SV4rQX4AgsVB'+ | |
'jKKnGWKATrvhuH/Et'+ 'OmX7iookBHkAGbiZj'+ | |
'4qLVWjjmW5=KWWLnE'+ 'Iqoc3Hp+fWkueesOp'+ | |
'3I37=DhWpWHAko/5NR'+ 'rZ+IcoukMWCK=PRzgp'+ | |
'fBAv3WKJuAnja6U+q+k'+ 'X/6LZX5MWloRJiRki1y'+ | |
'gW1oPAWHwkWIF24ohmo/'+ 'WebHcwO/=tuo/StWMjI4'+ | |
'lpslGPbRWruhy/MltWEBbFu'+ 'JWAdYaV4bEuYFUVWrEgwa3T'+ | |
'PM5KBQCQ+FVnYBUahRi+fWARsrHYzJ/qzJrM+cn4=zSDknBnIgrI/JfG/jAur'+ | |
'ryYeyDyY5GeBrifB3WWxrsGWWhxViJg1uJaeH0hbzTJaFW/WRI6g=6xvK'+ | |
'us2WKbJIXBKuh4CQOS10vBQZkeAtHmY/hkcW1aVkwO1VARxlkhCIj'+ | |
'jSXJhBY8LlGLJgN2rKHGcWBCuo5zj3E1XFqvmfuyQAWrAw=/h'+ | |
'hr0botqCu7/QQdWpRWTrKGaBSyjkeV5HBGWWjKpKQNV'+ | |
'ao45Z+xjKyH/okfSUR=Z+Rv3WHUoVOc1cbh'+ | |
'c/k5RW/OBaoU/W\'));///////'; | |
eval(WHAK); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the function and code used to generate above (limit to 2,284 characters, no safety for that yet)