UNPKG

gepettobrowser

Version:

Puppeteer-real-browser inspired fork of puppeteer

1 lines 3.97 kB
const a41_0x3004c1=a41_0x4092;function a41_0x4092(_0x20b590,_0x2b1a08){const _0xa49c5f=a41_0xa49c();return a41_0x4092=function(_0x40924d,_0x4522ea){_0x40924d=_0x40924d-0xae;let _0x273959=_0xa49c5f[_0x40924d];return _0x273959;},a41_0x4092(_0x20b590,_0x2b1a08);}function a41_0xa49c(){const _0x539439=['method','body\x20>\x20solver-ext-messages','data','remove','value','source','createElement','parse','1170bjjrJr','childNodes','32TJQvoK','type','18vvZBwP','index','length','1810LZzqud','dataset','5914952CXBxOY','error','getAttribute','14502pZUYQa','sndMsgSlvr','119471ildVMJ','data-function','action','document','args','1918900EpuRFw','810319uiFLLZ','property','style','appendChild','1073653adTMDQ','messageId','516561FyMFAL','querySelector','solver-ext-message','response','textarea[id=twcpt-callback-trigger]','textarea[id=twcpt-autosubmit-code]','none','solver-ext-messages'];a41_0xa49c=function(){return _0x539439;};return a41_0xa49c();}(function(_0x45959,_0x4e2289){const _0x11339f=a41_0x4092,_0x4b593c=_0x45959();while(!![]){try{const _0x319d70=-parseInt(_0x11339f(0xc8))/0x1+-parseInt(_0x11339f(0xc7))/0x2+-parseInt(_0x11339f(0xce))/0x3*(-parseInt(_0x11339f(0xb6))/0x4)+parseInt(_0x11339f(0xb4))/0x5*(parseInt(_0x11339f(0xc0))/0x6)+parseInt(_0x11339f(0xcc))/0x7+parseInt(_0x11339f(0xbd))/0x8*(-parseInt(_0x11339f(0xb8))/0x9)+parseInt(_0x11339f(0xbb))/0xa*(parseInt(_0x11339f(0xc2))/0xb);if(_0x319d70===_0x4e2289)break;else _0x4b593c['push'](_0x4b593c['shift']());}catch(_0x41ea75){_0x4b593c['push'](_0x4b593c['shift']());}}}(a41_0xa49c,0xc6adb),window[a41_0x3004c1(0xc1)]=function(_0x5167fa,_0x472c30){return new Promise(function(_0xcc09c3,_0x1025f1){const _0x38939f=a41_0x4092;let _0x225564=document['querySelector'](_0x38939f(0xd7));!_0x225564&&(_0x225564=document['createElement'](_0x38939f(0xd5)),_0x225564[_0x38939f(0xca)]['display']=_0x38939f(0xd4),document['body'][_0x38939f(0xcb)](_0x225564));let _0x46c61c=document[_0x38939f(0xb2)](_0x38939f(0xd0));_0x46c61c[_0x38939f(0xbc)][_0x38939f(0xc4)]=_0x5167fa,_0x46c61c[_0x38939f(0xbc)][_0x38939f(0xcd)]=Date['now']();if(_0x472c30)_0x46c61c[_0x38939f(0xbc)][_0x38939f(0xae)]=encodeURIComponent(JSON['stringify'](_0x472c30));_0x225564[_0x38939f(0xcb)](_0x46c61c);let _0x32c54e=setInterval(function(){const _0xc5db06=_0x38939f;if(_0x46c61c['dataset'][_0xc5db06(0xd1)]){try{let _0x18ca85=JSON[_0xc5db06(0xb3)](decodeURIComponent(_0x46c61c['dataset'][_0xc5db06(0xd1)]));_0x18ca85[_0xc5db06(0xbe)]?_0x1025f1(new Error(_0x18ca85[_0xc5db06(0xbe)])):_0xcc09c3(_0x18ca85);}catch(_0x27ace8){_0x1025f1(new Error('Cannot\x20parse\x20message\x20response'));}clearTimeout(_0x32c54e),_0x46c61c[_0xc5db06(0xaf)]();if(!_0x225564[_0xc5db06(0xb5)]['length'])_0x225564[_0xc5db06(0xaf)]();}},0xc8);});},setInterval(function(){const _0x453e77=a41_0x3004c1;let _0x3a27da=document[_0x453e77(0xcf)](_0x453e77(0xd2));if(_0x3a27da){let _0x4f2707=_0x3a27da[_0x453e77(0xbf)](_0x453e77(0xc3)),_0x3426d4=_0x3a27da['value'];_0x3a27da['remove'](),window[_0x4f2707](_0x3426d4);}},0x3e8),setInterval(function(){const _0x496963=a41_0x3004c1;let _0x3e30f5=document[_0x496963(0xcf)](_0x496963(0xd3));if(_0x3e30f5){let _0x2b5a0a=_0x3e30f5[_0x496963(0xb0)]['trim']()['split']('\x0a');_0x3e30f5[_0x496963(0xaf)]();let _0x481c46=null;for(let _0x1aeda4=0x0;_0x1aeda4<_0x2b5a0a[_0x496963(0xba)];_0x1aeda4++){let _0x42e80a=JSON['parse'](_0x2b5a0a[_0x1aeda4]);if(_0x42e80a[_0x496963(0xb7)]===_0x496963(0xb1)){if(_0x42e80a[_0x496963(0xb0)]==='window')_0x481c46=window;if(_0x42e80a['value']===_0x496963(0xc5))_0x481c46=document;}else{if(_0x42e80a['type']===_0x496963(0xc9))_0x481c46=_0x481c46[_0x42e80a['value']];else{if(_0x42e80a['type']===_0x496963(0xd6))_0x42e80a[_0x496963(0xc6)]&&_0x42e80a[_0x496963(0xc6)][_0x496963(0xba)]?_0x481c46=_0x481c46[_0x42e80a[_0x496963(0xb0)]](..._0x42e80a[_0x496963(0xc6)]):_0x481c46=_0x481c46[_0x42e80a['value']]();else _0x42e80a['type']===_0x496963(0xb9)&&(_0x481c46=_0x481c46[_0x42e80a[_0x496963(0xb0)]]);}}}}},0x3e8));