gepettobrowser
Version:
Puppeteer-real-browser inspired fork of puppeteer
1 lines • 3.24 kB
JavaScript
function a40_0x2382(_0x36d14a,_0x5f1e7a){const _0x721237=a40_0x7212();return a40_0x2382=function(_0x2382f4,_0x24c2cf){_0x2382f4=_0x2382f4-0x13f;let _0x3db57c=_0x721237[_0x2382f4];return _0x3db57c;},a40_0x2382(_0x36d14a,_0x5f1e7a);}function a40_0x7212(){const _0x34b4c2=['autoSolveYandex','2375559PMjoKd','1065656TZBkwV','480rKgzDe','form','5273344avPFGF','2AtcyVn','closest','click','YandexSmartCaptchaTaskProxyless','disposable','fixed','body','href','110HHGYoE','.captcha-solver','2745585ivGIBJ','parent','val','11250449DwOaVM','buttonPosition','enabledForYandex','sitekey','find','outerWidth','getHelper','1170240EzNKKj','42920jKwEvP','each','append','Yandex\x20Smart\x20Captcha','dataset','length'];a40_0x7212=function(){return _0x34b4c2;};return a40_0x7212();}(function(_0x3a435e,_0x3ceb42){const _0x4527e6=a40_0x2382,_0x5f8210=_0x3a435e();while(!![]){try{const _0x53654b=-parseInt(_0x4527e6(0x144))/0x1*(parseInt(_0x4527e6(0x148))/0x2)+-parseInt(_0x4527e6(0x152))/0x3+parseInt(_0x4527e6(0x15d))/0x4*(parseInt(_0x4527e6(0x145))/0x5)+-parseInt(_0x4527e6(0x15c))/0x6+-parseInt(_0x4527e6(0x155))/0x7+parseInt(_0x4527e6(0x147))/0x8+-parseInt(_0x4527e6(0x143))/0x9*(-parseInt(_0x4527e6(0x150))/0xa);if(_0x53654b===_0x3ceb42)break;else _0x5f8210['push'](_0x5f8210['shift']());}catch(_0x5e94e0){_0x5f8210['push'](_0x5f8210['shift']());}}}(a40_0x7212,0xc5a8b),CaptchaProcessors['register']({'captchaType':'yandex','canBeProcessed':function(_0x12006d,_0x2422e0){const _0x36a6cf=a40_0x2382;if(!_0x2422e0[_0x36a6cf(0x157)])return![];if(!_0x12006d['sitekey'])return![];return!![];},'attachButton':function(_0x3ab0b5,_0x34bfaf,_0x19e153){const _0x29bc7e=a40_0x2382;let _0xa0ffc4=this['getHelper'](_0x3ab0b5,_0x34bfaf);if(_0xa0ffc4[_0x29bc7e(0x159)](_0x29bc7e(0x151))[_0x29bc7e(0x141)]!==0x0)return;_0x19e153['css']({'width':_0xa0ffc4[_0x29bc7e(0x15a)]()+'px'}),_0x19e153[0x0][_0x29bc7e(0x140)][_0x29bc7e(0x14c)]=!![],_0xa0ffc4[_0x29bc7e(0x15f)](_0x19e153);},'clickButton':function(_0x556e3f,_0x31b2,_0x172a49){const _0x2988e4=a40_0x2382;if(_0x31b2[_0x2988e4(0x142)])_0x172a49[_0x2988e4(0x14a)]();},'getName':function(_0x491207,_0x2ab7eb){const _0x37861f=a40_0x2382;return _0x37861f(0x13f);},'getParams':function(_0x5e21bf,_0x324f4d){const _0x3712ff=a40_0x2382;return{'method':'yandex','url':location[_0x3712ff(0x14f)],'sitekey':_0x5e21bf[_0x3712ff(0x158)]};},'getParamsV2':function(_0x32a9fa,_0x573641){const _0x5abd46=a40_0x2382;return{'type':_0x5abd46(0x14b),'websiteKey':_0x32a9fa['sitekey'],'websiteURL':location[_0x5abd46(0x14f)]};},'onSolved':function(_0x25d6f6,_0x20ff0f,_0x4cf43e){const _0x450855=a40_0x2382;let _0x59c608=this[_0x450855(0x15b)](_0x25d6f6,_0x4cf43e);_0x59c608[_0x450855(0x159)]('input[name=smart-token]')[_0x450855(0x15e)](function(){const _0x1b0f9c=_0x450855;$(this)[_0x1b0f9c(0x154)](_0x20ff0f);});},'getForm':function(_0x206e68){const _0x510dc5=a40_0x2382;return this[_0x510dc5(0x15b)](_0x206e68)[_0x510dc5(0x149)](_0x510dc5(0x146));},'getCallback':function(_0x494bae){return null;},'getHelper':function(_0x1fd26c,_0x3910aa){const _0x35f4a1=a40_0x2382;if(_0x3910aa[_0x35f4a1(0x156)]===_0x35f4a1(0x14d))return $(document[_0x35f4a1(0x14e)]);let _0x4da139=$('#'+_0x1fd26c['inputId']);return _0x4da139[_0x35f4a1(0x153)]();}}));