Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "INSTAGRAM_html-q-p": {
- "link": "^instagram\\.com/(?:[\\w.]+/)?(?:p|reel)(/[\\w-]+).*",
- "url": ":(()=>{/*Reels pages have an overlay that interferes with Imagus working. There's code in this section that modifies a page element so Imagus can detect it.*/if(location.hostname!=='www.instagram.com')throw 'Sieve only works when on www.instagram.com';if(location.pathname.endsWith('/reels/')){const n=this.node,url=n.closest(`a[href*=\"/reel${$[1]}/\"]`)?.href;let el=url&&n.closest('._aajz')?.querySelector('ul[class=\"x6s0dn4 x972fbf x10w94by x1qhh985 x14e42zd x78zum5 xa5j0wu xln7xf2 xk390pu x5yr21d xl56j7k xdj266r x14z9mp xat24cr x1lziwak xexx8yu xyri2b x18d9i69 x1c1uobl x11njtxf xh8yej3\"]');if(el)el.outerHTML=el.outerHTML.replace(/^<ul( class=\"[^\"]+\")>/,`<a$1 href=\"${url}\">`)};return 'data:,'+$[1]})()",
- "res": ":\nconst lower_quality_first = false\n\nconst xhr = new XMLHttpRequest()\nxhr.open('GET', `https://www.instagram.com/p${$[1]}/`, false)\nxhr.setRequestHeader('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8')\nxhr.send()\nlet item = JSON.parse(xhr.responseText.match(/(?:xdt_api__v1__media__shortcode__web_info|{\"xig_polaris_media)\":(.+)},\"e(?:xtension|rror)s/)[1])\nitem = item.items?.[0] || item.if_not_gated_logged_out\nconst l = cfg.hz.hiRes&&lower_quality_first\nlet user = item.user.username\nthis.CNT.filename = (user + ' - ' + item.caption?.text?.match(/(?:\\S+\\s?){1,5}/)?.[0].trim()).replace(/[<>:\"\\/|\\\\?*]/g,'_')\nconst capt = [\n `@${item.user.username}${item.user.full_name ? ` (${item.user.full_name})` : ''}`,\n new Date(item.taken_at * 1000).toLocaleString(navigator.language, { dateStyle: 'medium', timeStyle: 'medium' }),\n item.caption?.text\n].filter(Boolean).join(' | ')\nconst res = (i) => [ i.video_versions?.[0].url ? ['#'+i.video_versions[0].url, i.image_versions2?.candidates?.[0]?.url] : [(l?'':'#')+i.image_versions2.candidates[0].url, (l?'#':'')+i.image_versions2.candidates.toReversed().filter(i => i.height > 600 && i.height !== i.width)?.[0]?.url], capt ]\nreturn item.carousel_media?.map((e) => res(e)) || [res(item)]",
- "note": "64h + Imagus_fan (edit)\nhttps://www.reddit.com/r/imagus/comments/z0zyox/comment/o4l3o7r\nOLD\nhttps://www.reddit.com/r/imagus/comments/1ojd19e/comment/nm25m2s\nhttps://www.reddit.com/r/imagus/comments/1nveb0s/comment/nhb6juz\n\n\n!!!\nВся информация о возможностях и особенностях фильтров для Инстаграм, а также о представленных в них опциях: см. Чаво, п.20.\n==\nAll information about the capabilities and features of the sieve, and also about the options presented in it: see FAQ, p.20.\n\n\nПРИМЕРЫ / EXAMPLES\nhttps://www.instagram.com/holy_exotic/reels/?hl=it\n(внешние ссылки / external links):\nhttps://forum.ru-board.com/topic.cgi?forum=5&topic=50874&start=200#19"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment