Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"Yandex images 2":{"url":": (()=>{if(this._yandex_url_!==location.search){delete this._yandex_imgs_;this._yandex_url_=location.search};return this._yandex_imgs_?.some(i => i.mid === $[1]) ? 'data:,' + $[1] : this._yandex_imgs_?.length ? 'https://yandex.com/images-apphost/rim?docid='+this._yandex_imgs_[this._yandex_num_||0].id+'&lang=com' : 'https://yandex.com/images-apphost/rim?docid='+Object.values(JSON.parse(document.querySelector('[id^=\"ImagesApp-\"').getAttribute('data-state')).initialState.serpList.items.entities)[new URL(location.href).searchParams.get('pos')].viewerData.rimId+'&lang=com'})();","res":":\nif(!this._yandex_imgs_)this._yandex_imgs_=[];\nif(!this._yandex_num_)this._yandex_num_=0;\nthis._yandex_num_+=1;\nif($._[0]==='{')this._yandex_imgs_.push(...JSON.parse($._).rld);\nlet m=this._yandex_imgs_;\nm=m.find(i=>i.mid===$[1])?.s?.sort((a,b)=>b.iw-a.iw);\nif(m)delete this._yandex_num_;\nreturn m ? [[['#'+m[0].iu,m[1]?.iu],m[0].t]] : this._yandex_num_<30 ? {loop:$[0]} : $[0]","img":"^avatars\\.mds\\.yandex\\.net/i\\?id=([\\da-f]+-\\d+-images-thumbs)&ref=rim&n=33&w=\\d{3}&h=[12]\\d\\d$"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement