-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackground.obf.js
More file actions
1 lines (1 loc) · 4.64 KB
/
background.obf.js
File metadata and controls
1 lines (1 loc) · 4.64 KB
1
const a0_0x75b94d=a0_0x3915;(function(_0x1b7384,_0x1c38a2){const _0x31f948=a0_0x3915,_0x5977c2=_0x1b7384();while(!![]){try{const _0x1d1284=-parseInt(_0x31f948(0xe9))/(-0x1*-0x513+0x1*0x1952+-0x30a*0xa)*(-parseInt(_0x31f948(0x106))/(0x4e5+-0x241f+0x1f3c))+-parseInt(_0x31f948(0xe7))/(0x5*-0x3b8+-0x1c83+0x25*0x146)+-parseInt(_0x31f948(0xef))/(0xf59+0x1f10+0x3*-0xf77)+parseInt(_0x31f948(0xe3))/(-0x1f8*-0x3+-0x1*0x172b+0x1148)+parseInt(_0x31f948(0xfd))/(0x1*-0x133f+0x5*-0x7a9+0x3992)+parseInt(_0x31f948(0xf7))/(-0x1d1b+-0x1819+0x353b)+-parseInt(_0x31f948(0xfb))/(-0x38a*0xa+0x4*0x89d+0xf8);if(_0x1d1284===_0x1c38a2)break;else _0x5977c2['push'](_0x5977c2['shift']());}catch(_0x1ed93b){_0x5977c2['push'](_0x5977c2['shift']());}}}(a0_0x5beb,0x41*-0x39e1+0x20661*0x1+0x3a*0x5e3f));function a0_0x3915(_0x30ca1e,_0x268a57){const _0x4c6c3a=a0_0x5beb();return a0_0x3915=function(_0x114900,_0x15d7d6){_0x114900=_0x114900-(0x4*-0x8f4+-0x2252+0x46fa);let _0x28970f=_0x4c6c3a[_0x114900];return _0x28970f;},a0_0x3915(_0x30ca1e,_0x268a57);}const API_BASE=a0_0x75b94d(0xf3),SERVER_URL='https://clipkey-server.onrender.com/api/activate';chrome[a0_0x75b94d(0x104)][a0_0x75b94d(0x103)][a0_0x75b94d(0xfa)](()=>{const _0x3755c9=a0_0x75b94d;chrome[_0x3755c9(0xe1)]['sync'][_0x3755c9(0xed)]({'hotkey':_0x3755c9(0xe2)});}),chrome[a0_0x75b94d(0x104)][a0_0x75b94d(0xe8)][a0_0x75b94d(0xfa)]((_0x1442da,_0x3132fa,_0x521e7f)=>{const _0x533c84=a0_0x75b94d,_0x2c2139={'CmDnF':_0x533c84(0x105),'MwLDG':function(_0xfda480,_0x154a5b){return _0xfda480(_0x154a5b);},'etIEY':'Clipboard\x20text\x20is\x20empty.','TbfIR':function(_0xef7324,_0x2abee2){return _0xef7324(_0x2abee2);},'IbipI':_0x533c84(0xf2),'sxuhY':function(_0x4c8928,_0x5b7692){return _0x4c8928(_0x5b7692);},'VaMII':'ACTIVATE_KEY','gtDKE':function(_0x300a20,_0x35bf7b,_0x27a409){return _0x300a20(_0x35bf7b,_0x27a409);},'zZIfW':_0x533c84(0xfc),'oflGs':function(_0xc49842,_0x376079){return _0xc49842===_0x376079;},'GpqYo':_0x533c84(0xdc),'DjvVN':_0x533c84(0xec),'OiAJA':function(_0x3ea28f,_0x15c986){return _0x3ea28f(_0x15c986);},'eJQXO':'Unknown\x20message\x20type.','yVOmU':function(_0x1d8f20,_0x11eb1c){return _0x1d8f20(_0x11eb1c);},'WkhVf':_0x533c84(0xff)};if(!_0x1442da||!_0x1442da['type'])return;return((async()=>{const _0x1ae3d9=_0x533c84;try{switch(_0x1442da[_0x1ae3d9(0xf1)]){case _0x2c2139[_0x1ae3d9(0xe6)]:{const _0x39ee46=_0x1442da[_0x1ae3d9(0x100)]?.[_0x1ae3d9(0x102)]();if(!_0x39ee46){_0x2c2139[_0x1ae3d9(0xdd)](_0x521e7f,{'ok':![],'error':_0x2c2139[_0x1ae3d9(0xeb)]});return;}const _0x3d266f=API_BASE+'?text='+_0x2c2139[_0x1ae3d9(0xdd)](encodeURIComponent,_0x39ee46),_0x107986=await fetch(_0x3d266f);if(!_0x107986['ok'])throw new Error(_0x1ae3d9(0x101)+_0x107986['status']);const _0x300313=await _0x107986[_0x1ae3d9(0xf5)](),_0x24c0c8=_0x300313?.[_0x1ae3d9(0xe5)]?.[_0x1ae3d9(0xdf)]?.[_0x1ae3d9(0x102)]();if(!_0x24c0c8){_0x2c2139[_0x1ae3d9(0xf0)](_0x521e7f,{'ok':![],'error':_0x2c2139[_0x1ae3d9(0xf9)]});return;}_0x2c2139[_0x1ae3d9(0xf6)](_0x521e7f,{'ok':!![],'answer':_0x24c0c8});break;}case _0x2c2139['VaMII']:{const {key:_0x201f3d}=_0x1442da,_0x278016=await _0x2c2139['gtDKE'](fetch,SERVER_URL,{'method':_0x1ae3d9(0xfe),'headers':{'Content-Type':_0x2c2139[_0x1ae3d9(0xea)]},'body':JSON['stringify']({'key':_0x201f3d})}),_0x1d6878=await _0x278016[_0x1ae3d9(0xf5)]();_0x2c2139[_0x1ae3d9(0xee)](_0x1d6878[_0x1ae3d9(0xe0)],'ok')&&_0x1d6878[_0x1ae3d9(0xf1)]?(await chrome[_0x1ae3d9(0xe1)]['local']['set']({'expiryTimestamp':_0x1d6878[_0x1ae3d9(0xda)],'userType':_0x1d6878[_0x1ae3d9(0xf1)],'apiKey':_0x201f3d}),_0x2c2139[_0x1ae3d9(0xf0)](_0x521e7f,{'ok':!![],'message':_0x2c2139[_0x1ae3d9(0xf4)],'userType':_0x1d6878[_0x1ae3d9(0xf1)]})):_0x2c2139[_0x1ae3d9(0xdd)](_0x521e7f,{'ok':![],'message':_0x2c2139['DjvVN']});break;}default:_0x2c2139[_0x1ae3d9(0xde)](_0x521e7f,{'ok':![],'error':_0x2c2139[_0x1ae3d9(0xd8)]});}}catch(_0x13d7dd){console[_0x1ae3d9(0xd9)](_0x1ae3d9(0xdb),_0x13d7dd),_0x2c2139[_0x1ae3d9(0xe4)](_0x521e7f,{'ok':![],'error':_0x2c2139[_0x1ae3d9(0xf8)]});}})()),!![];});function a0_0x5beb(){const _0x5af501=['storage','Ctrl+Shift+X','2669005hVrhyF','yVOmU','result','CmDnF','40887udvTez','onMessage','7eUNkpu','zZIfW','etIEY','Invalid\x20key','set','oflGs','3797796bfyKOp','TbfIR','type','AI\x20returned\x20empty\x20answer.','https://clipkey-server.onrender.com/ai','GpqYo','json','sxuhY','7687498vgzqmu','WkhVf','IbipI','addListener','7777888jxzrBh','application/json','112614PTRMBu','POST','Background\x20operation\x20failed.','text','API\x20request\x20failed:\x20','trim','onInstalled','runtime','ANSWER_CLIPBOARD','243856qSvira','eJQXO','error','expiry','background.js\x20error:','Key\x20activated','MwLDG','OiAJA','data','status'];a0_0x5beb=function(){return _0x5af501;};return a0_0x5beb();}