-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.safe.js
1 lines (1 loc) · 2.04 KB
/
main.safe.js
1
/*Obfuscated by JShaman.com*/var mesList,lastid=0x30750^0x30750;var countDown=0xa406f^0xa406f;const music=new Audio('normal.mp3');setInterval(()=>{var _0x3126d2=document['getElementById']('chatbox');$['get']('/MesGet.php?lastID='+lastid,function(_0x5db570,_0x2aafd7){mesList=JSON['parse'](_0x5db570);if(JSON['stringify'](mesList)!='{}'){lastid=mesList[mesList['length']-(0x52ded^0x52def)]['id'];}});for(var _0x4ff88b=0x7a5b1^0x7a5b1;_0x4ff88b<mesList['length']-(0xe9256^0xe9257);_0x4ff88b++){_0x3126d2['innerHTML']+='<p><b\x20class=\x22senderName\x22>'+mesList[_0x4ff88b]['name']+'</b>:\x20'+mesList[_0x4ff88b]['content']+'<a\x20\x20class=\x22senderTime\x22>'+mesList[_0x4ff88b]['time']+'</a></p>';_0x3126d2['scrollTop']=_0x3126d2['scrollHeight'];if(first_get==![]){music['play']();}}if(first_get){first_get=![];}},0xdaf42^0xda892);setInterval(()=>{if(getCookie('lastInput')!='')delCookie('lastInput');var _0x3465fe=new Date();var _0x26819e=new Date(_0x3465fe['getTime']()+(0xade8c^0xade8d)*0x36ee80);setCookie('lastInput',$('#contentInput')['val'](),_0x26819e,'/');},0xba71f^0xb800f);function onSubmit(_0x51e1f1){if(hasSubmitted()){document['getElementById']('submitContent')['submit']();}}function hasSubmitted(){if(countDown==(0xb04d5^0xb04d5)){setInterval(()=>{countDown=countDown+0x1;},0xbaaac^0xbaac8);document['getElementById']('nameInput')['style']['display']='none';var _0xb8eb96=new Date();var _0x2b1afc=new Date(_0xb8eb96['getTime']()+(0xcd5b6^0xcd5b7)*0x36ee80);setCookie('name',$('#nameInput')['val'](),_0x2b1afc,'/');return!![];}if(countDown<0x1e){layer['msg']('发送频率过快(time:'+(countDown-0x1e)+')');document['getElementById']('contentInput')['value']='';return![];}else{countDown=0x0;}return!![];}$('#myiframe')['on']('load',function(){var _0x3dd9c0=$(this)['contents']()['find']('body')['text']();var _0x40b46e=$['parseJSON'](_0x3dd9c0);if(_0x40b46e['status']!='200'){layer['open']({'title':'ERROR','content':'状态码:'+_0x40b46e['status']+'<br>错误描述:'+_0x40b46e['describe'],'icon':0x2});}else{document['getElementById']('contentInput')['value']='';}});