Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "INSTAGRAM_priv_api-p": {
- "link": "^instagr(?:am\\.com|\\.am)/(?:[\\w.]+/)?(?:p|reel)/([\\w-]+)(?:\\W|$)(?!\\?e=|liked_by|comments).*",
- "url": ": (()=>{var disable_on_timestamps = false ; if(disable_on_timestamps&&(this.node.className===\"x1i10hfl xjbqb8w x6umtig x1b1mbwd xaqea5y xav7gou x9f619 x1ypdohk xt0psk2 xe8uvvx xdj266r x11i5rnm xat24cr x1mh8g0r xexx8yu x4uap5 x18d9i69 xkhd6sd x16tdsg8 x1hl2dhg xggy1nq x1a2a7pz _a9zg _a6hd\"||this.node.nodeName==='TIME'||this.node.nodeName==='SPAN'))throw new Error('Not used on this link');{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 alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'\nconst media_pk = [...$[1]].reduce((a, v, i) => a + BigInt(alphabet.length ** ($[1].length - i - 1) * alphabet.indexOf(v)), 0n)\nconst x = new XMLHttpRequest()\nx.open('GET', `https://i.instagram.com/api/v1/media/${media_pk}/info/`, false)\nx.setRequestHeader('X-IG-App-ID', '936619743392459')\nif (!/firefox/i.test(navigator.userAgent)) {\n x.withCredentials = true\n}\nx.send()\nif (x.status !== 200) {\n return [ 'data:image/svg+xml,' + encodeURIComponent(`\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"120\" width=\"360\" style=\"background-color: #2a2a2a;\">\n <foreignObject height=\"100%\" width=\"100%\">\n <div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; height: 100%; width: 100%;\">\n <span style=\"color: tomato; display: table-cell; font: 18px sans-serif; vertical-align: middle; text-align: center; white-space: pre-wrap;\">\n Something went wrong\\nHTTP status ${x.status}: ${x.statusText}\n </span>\n </div>\n </foreignObject>\n </svg>`.replace(/\\n\\s+/g, '')), ' ' ]\n}\nconst item = JSON.parse(x.responseText).items[0]\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.image_versions2.candidates[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/1g4vm8l/comment/lstj7l6\nOLD\nhttps://www.reddit.com/r/imagus/comments/1g4vm8l/comment/lstj7l6\nhttps://www.reddit.com/r/imagus/comments/170lv0t/comment/k3nf9mi\n\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ПРИМЕРЫ / EXAMPLES\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