Skip to content

Instantly share code, notes, and snippets.

@TotallyNotAHaxxer
Created July 31, 2025 01:31
Show Gist options
  • Save TotallyNotAHaxxer/0d4dc81e66943bbbf844dc0d26da0e2d to your computer and use it in GitHub Desktop.
Save TotallyNotAHaxxer/0d4dc81e66943bbbf844dc0d26da0e2d to your computer and use it in GitHub Desktop.
Obfuscated javascript
<script>document.write(unescape("%3C%21%44%4F%43%54%59%50%45%20%68%74%6D%6C%3E%0A%3C%68%74%6D%6C%20%6C%61%6E%67%3D%22%65%6E%22%3E%0A%3C%68%65%61%64%3E%0A%20%20%3C%6D%65%74%61%20%63%68%61%72%73%65%74%3D%22%55%54%46%2D%38%22%3E%0A%20%20%3C%74%69%74%6C%65%3E%53%6E%6F%77%66%61%6C%6C%20%42%61%63%6B%67%72%6F%75%6E%64%3C%2F%74%69%74%6C%65%3E%0A%20%20%3C%73%74%79%6C%65%3E%0A%20%20%20%20%62%6F%64%79%20%7B%0A%20%20%20%20%20%20%6D%61%72%67%69%6E%3A%20%30%3B%0A%20%20%20%20%20%20%62%61%63%6B%67%72%6F%75%6E%64%3A%20%62%6C%61%63%6B%3B%0A%20%20%20%20%20%20%6F%76%65%72%66%6C%6F%77%3A%20%68%69%64%64%65%6E%3B%0A%20%20%20%20%7D%0A%20%20%20%20%63%61%6E%76%61%73%20%7B%0A%20%20%20%20%20%20%64%69%73%70%6C%61%79%3A%20%62%6C%6F%63%6B%3B%0A%20%20%20%20%7D%0A%20%20%3C%2F%73%74%79%6C%65%3E%0A%3C%2F%68%65%61%64%3E%0A%3C%62%6F%64%79%3E%0A%20%20%3C%63%61%6E%76%61%73%20%69%64%3D%22%73%6E%6F%77%22%3E%3C%2F%63%61%6E%76%61%73%3E%0A%3C%2F%62%6F%64%79%3E%0A%3C%2F%68%74%6D%6C%3E"))</script><script>const _0x1bebe8=_0x56bc;function _0x2e02(){const _0x34cb01=['push','getElementById','2050236lioqBc','68534pzppxT','42HHPEUZ','speedX','speedY','beginPath','random','angle','47910xUogDz','fillStyle','7336584FgjWAp','innerWidth','angularSpeed','arc','clearRect','3088pQvEiB','density','snow','addEventListener','update','height','white','455306dmCIzi','938005mKXtjp','resize','radius','width','1232tWZEEq','reset'];_0x2e02=function(){return _0x34cb01;};return _0x2e02();}(function(_0x5e1c2b,_0x20cd77){const _0x3cbdcd=_0x56bc,_0x278c6e=_0x5e1c2b();while(!![]){try{const _0x31e4e9=-parseInt(_0x3cbdcd(0xe1))/0x1+-parseInt(_0x3cbdcd(0xcc))/0x2*(parseInt(_0x3cbdcd(0xcd))/0x3)+parseInt(_0x3cbdcd(0xcb))/0x4+-parseInt(_0x3cbdcd(0xe2))/0x5+-parseInt(_0x3cbdcd(0xd3))/0x6+-parseInt(_0x3cbdcd(0xc7))/0x7*(-parseInt(_0x3cbdcd(0xda))/0x8)+parseInt(_0x3cbdcd(0xd5))/0x9;if(_0x31e4e9===_0x20cd77)break;else _0x278c6e['push'](_0x278c6e['shift']());}catch(_0x490d4b){_0x278c6e['push'](_0x278c6e['shift']());}}}(_0x2e02,0x40b51));const canvas=document[_0x1bebe8(0xca)](_0x1bebe8(0xdc)),ctx=canvas['getContext']('2d');function resize(){const _0x1463ef=_0x1bebe8;canvas[_0x1463ef(0xc6)]=window[_0x1463ef(0xd6)],canvas[_0x1463ef(0xdf)]=window['innerHeight'];}window[_0x1bebe8(0xdd)](_0x1bebe8(0xe3),resize),resize();function _0x56bc(_0x3b4a71,_0x12c780){const _0x2e02b4=_0x2e02();return _0x56bc=function(_0x56bcc,_0x2e85d1){_0x56bcc=_0x56bcc-0xc6;let _0x5cafbb=_0x2e02b4[_0x56bcc];return _0x5cafbb;},_0x56bc(_0x3b4a71,_0x12c780);}class Snowflake{constructor(){this['reset']();}[_0x1bebe8(0xc8)](){const _0x10eab3=_0x1bebe8;this['x']=Math['random']()*canvas['width'],this['y']=Math['random']()*-canvas[_0x10eab3(0xdf)],this[_0x10eab3(0xe4)]=Math[_0x10eab3(0xd1)]()*0x3+0x1,this[_0x10eab3(0xdb)]=Math[_0x10eab3(0xd1)]()*1.5+0.5,this['speedY']=this[_0x10eab3(0xe4)]*0.3+Math[_0x10eab3(0xd1)]()*0.8,this[_0x10eab3(0xce)]=Math[_0x10eab3(0xd1)]()*0x1-0.5,this[_0x10eab3(0xd2)]=Math[_0x10eab3(0xd1)]()*Math['PI']*0x2,this[_0x10eab3(0xd7)]=(Math[_0x10eab3(0xd1)]()-0.5)*0.01;}[_0x1bebe8(0xde)](){const _0xfbae6b=_0x1bebe8;this[_0xfbae6b(0xd2)]+=this['angularSpeed'],this['y']+=this[_0xfbae6b(0xcf)]*this['density'],this['x']+=Math['sin'](this['angle'])*0.5+this[_0xfbae6b(0xce)];this['y']>canvas[_0xfbae6b(0xdf)]+this['radius']&&(this[_0xfbae6b(0xc8)](),this['y']=0x0-this[_0xfbae6b(0xe4)]);if(this['x']>canvas['width']+this[_0xfbae6b(0xe4)])this['x']=-this['radius'];if(this['x']<-this[_0xfbae6b(0xe4)])this['x']=canvas[_0xfbae6b(0xc6)]+this[_0xfbae6b(0xe4)];}['draw'](){const _0x2c3335=_0x1bebe8;ctx[_0x2c3335(0xd0)](),ctx[_0x2c3335(0xd8)](this['x'],this['y'],this[_0x2c3335(0xe4)],0x0,Math['PI']*0x2),ctx[_0x2c3335(0xd4)]=_0x2c3335(0xe0),ctx['globalAlpha']=0.8,ctx['fill']();}}const snowflakes=[],maxFlakes=0x12c;for(let i=0x0;i<maxFlakes;i++){snowflakes[_0x1bebe8(0xc9)](new Snowflake());}function animate(){const _0x1276fd=_0x1bebe8;ctx[_0x1276fd(0xd9)](0x0,0x0,canvas[_0x1276fd(0xc6)],canvas[_0x1276fd(0xdf)]);for(let _0x1a7680 of snowflakes){_0x1a7680[_0x1276fd(0xde)](),_0x1a7680['draw']();}requestAnimationFrame(animate);}animate();</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment