gepettobrowser
Version:
Puppeteer-real-browser inspired fork of puppeteer
1 lines • 3.64 kB
JavaScript
function a25_0x5e44(_0x12d98c,_0x34c46f){const _0x18ae0b=a25_0x18ae();return a25_0x5e44=function(_0x5e44a8,_0x9af086){_0x5e44a8=_0x5e44a8-0x1b9;let _0x4a019e=_0x18ae0b[_0x5e44a8];return _0x4a019e;},a25_0x5e44(_0x12d98c,_0x34c46f);}const a25_0x43801d=a25_0x5e44;function a25_0x18ae(){const _0x383c90=['1px','image','img_src','putCaptchaAnswerHere','then','height','1027584puEZXd','pageUrl','321201kojbFU','markAsCaptchaSource','contextMenus','sendMessage','normalSources','width','loadTaintedImageInBackgroundFrame','runtime','112gAFwrn','create','createElement','imageManualShown','local','Mark\x20As\x20Captcha\x20Source','undefined','160076dhInDh','765605KzVKPB','get','host','10068pUnojM','push','5SQWCsI','name','onClicked','onMessage','18276eVUdkS','tabs','removeAll','forEach','body','frameId','731646IVhyKV','addListener','getContextMenuEl','xpath','editable','Put\x20Captcha\x20Answer\x20Here'];a25_0x18ae=function(){return _0x383c90;};return a25_0x18ae();}(function(_0xf4d009,_0xdf3c16){const _0x204c4d=a25_0x5e44,_0x539643=_0xf4d009();while(!![]){try{const _0x1572fd=-parseInt(_0x204c4d(0x1c2))/0x1*(-parseInt(_0x204c4d(0x1c6))/0x2)+parseInt(_0x204c4d(0x1da))/0x3+parseInt(_0x204c4d(0x1bc))/0x4+parseInt(_0x204c4d(0x1bd))/0x5+parseInt(_0x204c4d(0x1c0))/0x6*(-parseInt(_0x204c4d(0x1e2))/0x7)+-parseInt(_0x204c4d(0x1d8))/0x8+-parseInt(_0x204c4d(0x1cc))/0x9;if(_0x1572fd===_0xdf3c16)break;else _0x539643['push'](_0x539643['shift']());}catch(_0x2d2ab5){_0x539643['push'](_0x539643['shift']());}}}(a25_0x18ae,0x1aafb));function imageContextMenuAttachSourceHandler(_0x4bce65,_0x1c2753){const _0x2ca06c=a25_0x5e44;chrome['storage'][_0x2ca06c(0x1b9)][_0x2ca06c(0x1be)](_0x2ca06c(0x1e5),function(_0x467aa5){const _0xec3b89=_0x2ca06c;chrome[_0xec3b89(0x1c7)][_0xec3b89(0x1dd)](_0x1c2753['id'],{'command':_0xec3b89(0x1ce),'showManual':_0x467aa5[_0xec3b89(0x1e5)]?![]:!![],'element':_0x4bce65[_0xec3b89(0x1d0)]?'input':'image'},{'frameId':_0x4bce65[_0xec3b89(0x1cb)]},_0x32fd4e=>{const _0x1053ae=_0xec3b89;saveElementPath(new URL(_0x4bce65[_0x1053ae(0x1d9)])[_0x1053ae(0x1bf)],_0x4bce65[_0x1053ae(0x1d0)]?'input':_0x1053ae(0x1d3),_0x32fd4e[_0x1053ae(0x1cf)]);});});}chrome[a25_0x43801d(0x1dc)][a25_0x43801d(0x1c8)](function(){const _0xe2dd89=a25_0x43801d;chrome[_0xe2dd89(0x1dc)][_0xe2dd89(0x1e3)]({'id':_0xe2dd89(0x1db),'title':_0xe2dd89(0x1ba),'contexts':['image']}),chrome[_0xe2dd89(0x1dc)]['create']({'id':_0xe2dd89(0x1d5),'title':_0xe2dd89(0x1d1),'contexts':['editable']});}),chrome[a25_0x43801d(0x1dc)][a25_0x43801d(0x1c4)][a25_0x43801d(0x1cd)](imageContextMenuAttachSourceHandler);function saveElementPath(_0x51335a,_0x1b0d70,_0x1a7b6a){const _0x596552=a25_0x43801d;Config['get'](_0x596552(0x1de))[_0x596552(0x1d6)](_0x19001b=>{const _0xd7b8e4=_0x596552;let _0xddc340=null;_0x19001b[_0xd7b8e4(0x1c9)](function(_0x47fe57){const _0xede020=_0xd7b8e4;if(_0x47fe57[_0xede020(0x1bf)]==_0x51335a)_0xddc340=_0x47fe57;}),!_0xddc340&&(_0xddc340={'host':_0x51335a,'image':'','input':''},_0x19001b[_0xd7b8e4(0x1c1)](_0xddc340)),_0xddc340[_0x1b0d70]=_0x1a7b6a,Config['set']({'normalSources':_0x19001b});});}chrome[a25_0x43801d(0x1e1)][a25_0x43801d(0x1c5)][a25_0x43801d(0x1cd)]((_0x1a0058,_0xf1bedd,_0x1605d8)=>{const _0x46b03d=a25_0x43801d;if(_0x1a0058['command']===_0x46b03d(0x1e0)){if(typeof document!==_0x46b03d(0x1bb)){let _0x552555=document[_0x46b03d(0x1e4)]('iframe');_0x552555['src']=_0x1a0058['img_src'],_0x552555[_0x46b03d(0x1df)]=_0x46b03d(0x1d2),_0x552555[_0x46b03d(0x1d7)]='1px',_0x552555[_0x46b03d(0x1c3)]=_0x1a0058[_0x46b03d(0x1d4)],document[_0x46b03d(0x1ca)]['appendChild'](_0x552555),_0x1605d8({});}}else _0x1605d8(undefined);});