gepettobrowser
Version:
Puppeteer-real-browser inspired fork of puppeteer
1 lines • 6.69 kB
JavaScript
function a47_0x52ab(_0x4dd8cf,_0x13c596){const _0x4c67dc=a47_0x4c67();return a47_0x52ab=function(_0x52ab4a,_0x46241a){_0x52ab4a=_0x52ab4a-0x1d8;let _0x2c4cee=_0x4c67dc[_0x52ab4a];return _0x2c4cee;},a47_0x52ab(_0x4dd8cf,_0x13c596);}const a47_0x59ead0=a47_0x52ab;(function(_0x1861fd,_0x1f839b){const _0x491a43=a47_0x52ab,_0xa1dd51=_0x1861fd();while(!![]){try{const _0xc82b1c=-parseInt(_0x491a43(0x1ff))/0x1*(-parseInt(_0x491a43(0x1fb))/0x2)+parseInt(_0x491a43(0x1d9))/0x3+parseInt(_0x491a43(0x222))/0x4+parseInt(_0x491a43(0x1e8))/0x5*(parseInt(_0x491a43(0x1f2))/0x6)+parseInt(_0x491a43(0x203))/0x7*(-parseInt(_0x491a43(0x1f4))/0x8)+parseInt(_0x491a43(0x1de))/0x9*(-parseInt(_0x491a43(0x20f))/0xa)+-parseInt(_0x491a43(0x1e0))/0xb*(parseInt(_0x491a43(0x1eb))/0xc);if(_0xc82b1c===_0x1f839b)break;else _0xa1dd51['push'](_0xa1dd51['shift']());}catch(_0x3a82f2){_0xa1dd51['push'](_0xa1dd51['shift']());}}}(a47_0x4c67,0x9b530),Config[a47_0x59ead0(0x1d8)]()['then'](_0x562d1f=>{const _0x5b8ec3=a47_0x59ead0;$(_0x5b8ec3(0x216))[_0x5b8ec3(0x1fa)](_0x5b8ec3(0x1f6))['each'](function(){const _0x4ecf24=_0x5b8ec3;let _0x33a2bd=$(this),_0x11ed6f=_0x562d1f[_0x33a2bd['attr'](_0x4ecf24(0x200))];_0x33a2bd['attr'](_0x4ecf24(0x1e1))==_0x4ecf24(0x21e)?_0x33a2bd['prop'](_0x4ecf24(0x217),_0x11ed6f):_0x33a2bd[_0x4ecf24(0x206)](_0x11ed6f),_0x33a2bd['closest'](_0x4ecf24(0x214))['find'](_0x4ecf24(0x226))[_0x4ecf24(0x1ed)](_0x11ed6f);}),$(_0x5b8ec3(0x1e4))[_0x5b8ec3(0x1ed)]('v'+chrome[_0x5b8ec3(0x1e5)][_0x5b8ec3(0x21d)]()[_0x5b8ec3(0x218)]);}));var background=chrome['runtime'][a47_0x59ead0(0x1fd)]({'name':a47_0x59ead0(0x227)});background['onMessage'][a47_0x59ead0(0x224)](function(_0x1deed8){const _0x4b4846=a47_0x59ead0;if(_0x1deed8[_0x4b4846(0x1f7)]=='login'){let _0x292368=$(_0x4b4846(0x212));_0x292368[_0x4b4846(0x1ed)](_0x292368['attr'](_0x4b4846(0x225))),_0x1deed8[_0x4b4846(0x1ea)]===undefined?($(_0x4b4846(0x223))[_0x4b4846(0x210)](),displayAccountInfo(_0x1deed8[_0x4b4846(0x202)])):$('#login-form')[_0x4b4846(0x1fa)](_0x4b4846(0x1e3))['html']('<div\x20class=\x22error\x22>'+_0x1deed8['error']+_0x4b4846(0x201));}_0x1deed8[_0x4b4846(0x1f7)]==_0x4b4846(0x209)&&($(_0x4b4846(0x228))[_0x4b4846(0x210)](),$(_0x4b4846(0x1fc))[_0x4b4846(0x1ed)](''),$('#login-form')['show'](),$('#login-form')[_0x4b4846(0x1fa)](_0x4b4846(0x1dc))[_0x4b4846(0x1f1)]()),_0x1deed8[_0x4b4846(0x1f7)]=='getAccountInfo'&&($(_0x4b4846(0x1dd))[_0x4b4846(0x210)](),_0x1deed8['error']===undefined?displayAccountInfo(_0x1deed8[_0x4b4846(0x202)]):$(_0x4b4846(0x223))['show']()[_0x4b4846(0x1fa)](_0x4b4846(0x1dc))[_0x4b4846(0x1f1)]());}),background[a47_0x59ead0(0x205)]({'action':a47_0x59ead0(0x1e6)}),$(a47_0x59ead0(0x223))[a47_0x59ead0(0x208)](function(_0x2c683a){const _0x4e34ca=a47_0x59ead0;_0x2c683a[_0x4e34ca(0x207)]();let _0x1fd8f3=$(this)['find'](_0x4e34ca(0x21c));_0x1fd8f3[_0x4e34ca(0x1f8)](_0x4e34ca(0x225),_0x1fd8f3[_0x4e34ca(0x1ed)]())[_0x4e34ca(0x1e2)]({'width':_0x1fd8f3[_0x4e34ca(0x20b)]()}),_0x1fd8f3[_0x4e34ca(0x1ee)](_0x4e34ca(0x21b)),$(this)['find'](_0x4e34ca(0x1e3))[_0x4e34ca(0x1ed)]('');let _0x2ee006=$(this)[_0x4e34ca(0x1fa)](_0x4e34ca(0x1ec))[_0x4e34ca(0x206)]();background[_0x4e34ca(0x205)]({'action':_0x4e34ca(0x1db),'apiKey':_0x2ee006});}),$('#account-info\x20.logout')[a47_0x59ead0(0x1fe)](function(_0x5ebd25){const _0x56e9d6=a47_0x59ead0;_0x5ebd25['preventDefault'](),background[_0x56e9d6(0x205)]({'action':_0x56e9d6(0x209)});}),$(a47_0x59ead0(0x216))['on'](a47_0x59ead0(0x1f3),a47_0x59ead0(0x1f6),function(){const _0x5f106a=a47_0x59ead0;let _0x42a4bd=$(this)[_0x5f106a(0x1f8)]('name'),_0x209809=$(this)[_0x5f106a(0x206)]();$(this)['is'](_0x5f106a(0x215))&&(_0x209809=$(this)['is'](_0x5f106a(0x20d)));let _0x507ee0=$(this)[_0x5f106a(0x1f8)]('data-type');if(_0x507ee0==_0x5f106a(0x1f5))_0x209809=parseInt(_0x209809)||0x0;if(_0x507ee0=='float')_0x209809=parseFloat(_0x209809)||0x0;let _0x1c8189={};_0x1c8189[_0x42a4bd]=_0x209809,Config[_0x5f106a(0x20c)](_0x1c8189);});function displayAccountInfo(_0x43ac5d){const _0x21d8f3=a47_0x59ead0;let _0x268b59=$('#account-info');_0x268b59[_0x21d8f3(0x1fa)]('.email')[_0x21d8f3(0x1ed)](_0x43ac5d[_0x21d8f3(0x220)]),_0x268b59[_0x21d8f3(0x1fa)]('.balance')['text']((_0x43ac5d[_0x21d8f3(0x1e7)]==_0x21d8f3(0x213)?'$':'₽')+'\x20'+_0x43ac5d[_0x21d8f3(0x221)]),_0x268b59[_0x21d8f3(0x20e)]();}$('.custom-select-label')[a47_0x59ead0(0x1fe)](function(_0x2fb9d3){const _0x312184=a47_0x59ead0;let _0x53d1b4=$(this)[_0x312184(0x1f9)]();$(_0x312184(0x214))[_0x312184(0x1f0)]($(this)[_0x312184(0x1f9)]()[0x0])[_0x312184(0x1da)](_0x312184(0x1e9)),_0x53d1b4[_0x312184(0x1fa)](_0x312184(0x204))[_0x312184(0x1e2)]({'top':_0x53d1b4[_0x312184(0x21a)]()['top']+0x16+'px'}),_0x53d1b4[_0x312184(0x20a)](_0x312184(0x1e9));}),$(a47_0x59ead0(0x21f))[a47_0x59ead0(0x1fe)](function(_0x480356){const _0x4d74ec=a47_0x59ead0;_0x480356['preventDefault']();let _0xf191b3=$(this)['closest']('.custom-select'),_0x158ab5=$(this)[_0x4d74ec(0x1f9)]()[_0x4d74ec(0x1fa)](_0x4d74ec(0x1dc))[_0x4d74ec(0x206)]();_0xf191b3['find'](_0x4d74ec(0x226))[_0x4d74ec(0x1ed)](_0x158ab5),_0xf191b3[_0x4d74ec(0x1da)]('open');}),$(a47_0x59ead0(0x1df))[a47_0x59ead0(0x1fe)](function(){const _0x52f7af=a47_0x59ead0;$(this)[_0x52f7af(0x1f9)]()[_0x52f7af(0x1fa)](_0x52f7af(0x1dc))['val']($(this)[_0x52f7af(0x1f8)](_0x52f7af(0x211)))[_0x52f7af(0x1ef)](),$(this)[_0x52f7af(0x1f9)]()[_0x52f7af(0x1fa)](_0x52f7af(0x21c))['click']();}),$(a47_0x59ead0(0x229))['attr']('href',a47_0x59ead0(0x219)+chrome['runtime']['id']+'/options/options.html#autosubmit-rules');function a47_0x4c67(){const _0x2d1f78=['input[name=apiKey]','text','html','change','not','focus','3315930pPSZfl','keyup\x20change','3756776aKAzjM','int','input,select','action','attr','parent','find','518gCYrkd','#login-form\x20.result','connect','click','2887qjyeby','name','</div>','response','7qFuhuL','.custom-select-dropdown','postMessage','val','preventDefault','submit','logout','toggleClass','outerWidth','set',':checked','show','50PFJuGd','hide','data-value','#login-form\x20button','USD','.custom-select','[type=checkbox]','#settings-form','checked','version','chrome-extension://','offset','<img\x20src=\x22/assets/images/loader_dark.gif\x22>','button','getManifest','checkbox','.custom-select-dropdown-field\x20button','email','balance','1939156VUfibu','#login-form','addListener','data-text','.custom-select-value','popup','#account-info','.auto-submit-link','getAll','1486638iNOuNh','removeClass','login','input','.main-loader','214407LkFpJB','.custom-select-dropdown-value','539LIPZmp','type','css','.result','.version','runtime','getAccountInfo','valute','5MciCpb','open','error','258564KbSZzd'];a47_0x4c67=function(){return _0x2d1f78;};return a47_0x4c67();}