ShareShortcuts
Создать форк «R⤓Download»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы aslamgopal получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
45K
Сохранено
7
Действия
23
Категория
API
Версия
1.0
Язык
EN

R Download is a magical shortcut designed specifically for iOS users. With it, you can effortlessly download photos, videos, and other media to your device’s gallery with just a single click.

Что нового

Версия 1.0

First release

История версий
1.0 27 мая 2025 г.

First release

Что делает

Действий: 23
  1. Text
  2. Dictionary
  3. Repeat with Each
  4. Repeat with Each
  5. URL
  6. If
  7. Get Contents of URL
    …
  8. If
  9. Get Contents of URL
    …
  10. Set Name
  11. List
  12. URL Encode
  13. URL
    data:text/html,…
  14. URL Encode
  15. Wait
  16. If
  17. Choose from List
  18. If
  19. Open URLs
  20. If
  21. Save to Photo Album
  22. Stop This Shortcut
  23. Text

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/web'
#define color lightblue
#define glyph downloadArrow

const Dictionary = {
	"Version": "9.5",
	"index": [
		"1",
		"2",
		"3",
		"4",
		"5",
		"6",
		"7",
		"8",
		"9",
		"10",
		"11",
		"12",
		"13",
		"14",
		"15",
		"16",
		"17",
		"18",
		"19",
		"20"
	],
	"langpack": [
		"{\\\"private\\\":\\\"🚫 The account you want to download from seems private.\\\",\\\"share\\\":\\\"⭕️ Please copy the post link or use the share sheet to download\\\",\\\"thumb\\\":\\\"Thumbnail HD\\\",\\\"sthumb\\\":\\\"Thumbnail SD\\\",\\\"sdown\\\":\\\"🚫 Server is down right now please try again later\\\",\\\"url\\\":\\\"URL:\\\",\\\"exit\\\":\\\"◁ Exit\\\",\\\"update\\\":\\\"✔️ Update to ㅁ\\\",\\\"medianot\\\":\\\"🚫 Media not found\\\",\\\"errordownload\\\":\\\"🔴 Something went wrong while downloading, please restart the shortcut again, if this happens again please inform me on Twitter\\/X (@r07qxo) or on Telegram (@r_Shortcuts)\\\",\\\"ok\\\":\\\"Ok ✔️\\\",\\\"noteupdate\\\":\\\"🔺 A new version of R⤓Download is available to download, here are some information about it:\\\",\\\"lang\\\":\\\"en\\\",\\\"nsfwnot\\\":\\\"⛔️ Sorry, downloading sensitive content is blocked\\\",\\\"openaccount\\\":\\\"Contact me on \\\",\\\"select\\\":\\\"Choose quality:\\\",\\\"notsupport\\\":\\\"‎🔴 Sorry, downloading from this site or application is not supported yet. If you have any questions, please contact me on my accounts:\\nTwitter: @r07qxo / Telegram: @r_Shortcuts\\\",\\\"story\\\":\\\"Download current story\\\",\\\"stories\\\":\\\"Download all stories\\\"}",
		"{\\\"private\\\":\\\"🚫 يبدو أن الحساب الذي ترغب في التنزيل منه (خاص)\\\",\\\"share\\\":\\\"⭕️ يرجى نسخ رابط المنشور أو استخدام زر المشاركة للتنزيل\\\",\\\"thumb\\\":\\\"الصورة المصغرة HD\\\",\\\"sthumb\\\":\\\"الصورة المصغرة SD\\\",\\\"sdown\\\":\\\"🚫 الخادم غير متصل حاليًا، يرجى المحاولة مرة أخرى في وقت لاحق\\\",\\\"url\\\":\\\"الرابط:\\\",\\\"exit\\\":\\\"▷ خروج\\\",\\\"update\\\":\\\"✔️ تحديث إلى ㅁ\\\",\\\"medianot\\\":\\\"🚫 لم يتم العثور على الوسائط\\\",\\\"errordownload\\\":\\\"🔴 حدث خطأ أثناء التنزيل، يرجى إعادة تشغيل الاختصار مرة أخرى، إذا حدثت هذه المشكلة مرة أخرى، يرجى إبلاغي على تويتر\\/X (@r07qxo) او تيليقرام (@r_Shortcuts)\\\",\\\"ok\\\":\\\"حسنا ✔️\\\",\\\"noteupdate\\\":\\\"🔺 هناك نسخة جديدة من R⤓Download متاحة للتنزيل، هنا بعض المعلومات حولها:\\\",\\\"lang\\\":\\\"ar\\\",\\\"nsfwnot\\\":\\\"⛔️ عذرًا، تم حظر تنزيل المحتوى الحساس\\\",\\\"openaccount\\\":\\\"تواصل معي على \\\",\\\"select\\\":\\\"اختر الجودة:\\\",\\\"notsupport\\\":\\\"‎🔴 عذراً التنزيل من هذا الموقع او التطبيق غير غير مدعومة حتى الآن، اذا اردت استفسار ارجوا التواصل معي على حساباتي:\\\",\\\"story\\\":\\\"تحميل الستوري الحالي\\\",\\\"stories\\\":\\\"تحميل كل الستوريات\\\"}"
	],
	"script": {
		"a": ";let out={};dL=[];dd={}\nlet index=dict['index']\nlet contact='Twitter: @r07qxo / Telegram: @r_Shortcuts'\nlet lang=JSON.parse(dict['langpack'][dict['lang']-1])\nlet cver=dict['version']\nlet serverurl='https://www.moody0100.com/file/242/'\nlet fn = '@r07qxo - R⤓Download'\nlet p=dict.source?.replace(/\u0026amp;/gm, '\u0026').replace(/\\\\u0026/gm, '\u0026')\nlet script=dict['script']\nout={version:cver,wait:0,cookieh:'C',urlb:'url',cookie:1,reqbody:'tt',outhkey:'url',doc_id:'10015901848480474', 'kx-request': 'rr', 'x-request': 'rt', 'kx-cftoken': 'kk', 'x-cftoken': 'f', fn: 'R⤓Download.txt'}\nlet ext=dict.ext.replace(/\\n/gm,'\\\\n');\nout.variables={\"shortcode\":1,\"fetch_comment_count\":null,\"fetch_related_profile_media_count\":null,\"parent_comment_count\":null,\"child_comment_count\":null,\"fetch_like_count\":null,\"fetch_tagged_user_count\":null,\"fetch_preview_comment_count\":null,\"has_threaded_comments\":false,\"hoisted_comment_id\":null,\"hoisted_reply_id\":null}\nlet ask={[lang['openaccount']+'Twitter/X']:{web:'https://twitter.com/r07qxo'},[lang['openaccount']+'Telegram']:{web:'https://t.me/r_Shortcuts'},[lang['exit']]:{exit:out}}\nout['x-lsd']='W9CWO77z3UPJRzrk0HBUhQ'\nif(ext.match(/(?:mp4|jpg|3gp|png|jpeg|jpge|mpeg|gif)/i)){\nout.ext=ext.split('\\\\n')\nout={...out,save:1,stopㅁ:1}\n}else if(script.includes('finish\":true')){\nout={version:cver+'tt',prompt:`${lang['errordownload']}\\n\\n${lang['url']}\\n${JSON.parse(script).input}\\n\\n${cver}`,ask:ask}\n}else if(index=='2'\u0026\u0026!p.startsWith('{\"')){\nout={...out,urls:'https://m-r.pw/242',referer:serverurl.replace(/f.*$/g, \"\"), origin:serverurl.replace(/\\/f.*$/g, \"\"),down:1}\n} else if(dict.script.includes('errors\":1')){out.errors=1}else{\nlet inp=dict['input'].match(/(https?:[^\\s\\\"\\ㅁ$]+)/i)?.[1]\nlet input=dict['input'].match(/(https?:[^\\s\\\"\\ㅁ$]+)/i)?.[1]\nif(!input){\nif(script.input){input=script?.input}else{input=(dict.input.length\u003e30?dict.input.replace(/\\ㅁ /g,'').substr(0,30)+'...':dict.input.replace(/\\ㅁ /g,''))}\n}\nlet error='\\n\\n'+lang.errordownload+'\\n\\n'+lang.url+'\\n'+inp+'\\n\\n'+cver+'\\n'+contact\nif(index=='1'){\nif(!input.match(/instagram\\.com\\/(?:p|reels?|tv|igtv)\\//i)\u0026\u0026input.match(/(?:^[\\s\\S]+?)?(http.+(instagram|snapchat|x|twitter)\\.com\\/)/i)){out={...out,input:dict.input.match(/(?:^[\\s\\S]+?)?(http[^\\s\\\"\\ㅁ$]+)/i)?.[1],urls:(input.match(/(?:\\w+)?(?:x|twitter)\\.com\\/.+status\\/(\\d{13,})/i)?.[1]?'https://yt.r07qxo.workers.dev':'https://r1d-s.r07qxo1.workers.dev'),text:lang,post:1}}else{\nout={...out,urls:serverurl,referer:serverurl.replace(/f.*$/g,\"\"),origin:serverurl.replace(/\\/f.*$/g, \"\")}\n}\n}else{\nscript=JSON.parse(script)\nif(script.down){index=index-1;out.down=1}\nif(index=='2'){shortcut=JSON.parse(p);out.shortcut=shortcut;p=JSON.parse(p)\nif(!p.urls\u0026\u0026cver!=(p.Version||p.version)){\nout={...out,update:true,ask:{[lang['update'].replace(/ㅁ/, (p.version??p.Version))]:{web:(out.down?p.blog:p.URL)}},prompt:`${lang.noteupdate}\\n\\n${cver} ➜ ${(p.Version||p.version)}\\n\\n${p['en']}`}\n}\n}else{\nif(script.update){out.update=true}\nout['shortcut']=script['shortcut'];shortcut=out['shortcut']}\nif(!out.update){\nif(input.match(/(https?:)/i)){\ninput = input.replace(/https[^\"]+tubemaxapp.com\\/.+video\\/(.{11})/g, \"https://youtu.be/$1\")\nout['x-ig-app']='238260118697367'\nout.input=input\nif (input.includes('instagram.com') \u0026\u0026 script?.urls?.includes('ajaxSearch')) {\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')\u0026\u0026p.match(/Download (Photo|Video)/i)){p=JSON.parse(p).data\nlet sid = input.match(/instagram\\.com\\/stories\\/([\\_\\w\\.\\-]+)\\/(\\d{13,})/i)\nm1 = sid?.[1]\nm2 = sid?.[2]\nmm = p.match(/((photo\\_dl[^\"]+|download_video\\'\\))\"|\u003ca|download-items__btn\\\"\u003e\\s+\u003ca onclick=\\\"showShare\\(\\)\") href=\"[^\"]+(?:\\?file=|\u0026)[^\"]+/g)\none = ''\nmm.forEach(d =\u003e {\nd = d.replace(/\u0026amp\\;/g, \"\u0026\")\nv = d.match(/ig\\/.+?\\?file\\=(.+$)/i)?.[1]\nif (v) {\nv = v.replace(/\\-/gi, \"+\").replace(/\\_/gi, \"/\")\ncode = v\nlength = code.length % 4\nif (length == 2) {\n    code += '=='\n} else if (length == 3) {\n    code += '='\n}\nd = atob(code)\n}\ndd = d.replace(/^.+\"/g, \"\").replace(/\u0026name.*/g, \"\").replace(/^https:\\/\\/[^\\/]+/, 'https://scontent.cdninstagram.com')\nif (dd.match(/\\/[0_]+\\.mp4/i)) {\ne0 = 1\n} else { e0=0 }\nif (mm.length \u003e 1 \u0026\u0026 d.includes(m2)) {\none = dd\n}\ndL.push(dd)\n})\nif (one) {\nout = {...out, ask:{[lang.story]:{urls:one},[lang.stories + ' (' + mm.length + ')']:{urls:dL}}, finish:true,fn:'@' + (m1 ?? 'r07qxo') +'  - R⤓Download', prompt:'\\n\\n'+input.match(/stories\\/([^\\/]+)/i)?.[1] + '\\n\\n'}\n} else {\nif (e0==1) {\nout={...out,urls:'https://fastdl.app/api/convert',fn:'R⤓Download.txt', post:1}\n} else {\nout={...out,urls:dL,fn:'@' + (m1 ?? 'r07qxo') +'  - R⤓Download',finish:true}\n}\n}\n}else{\nif(!input.match(/(instagram|threads)\\.(?:com|net)\\/(?:p|reels?|tv|\\@.+\\/post)\\/([^\\/\\?]+)/i)) {\nout={...out,prompt:(p.match(/instagram-private/i)?lang.private+'\\n\\n\\n'+lang.url+'\\n'+input+'\\n\\n'+cver+'\\n'+contact:error),ask:ask}\n} else {\nout.urls = input\n}\n}\n} else if(m = input.match(/(instagram|threads)\\.(?:com|net)\\/(?:p|reels?|tv|\\@.+\\/post)\\/([^\\/\\?]+)/i)?.[2]){\nout.variables.shortcode=m\nout['kx-request']='User-Agent'\nout['x-request']='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15'\nif(index=='2'\u0026\u0026m.length\u003e15){out={...out, prompt:lang.private+'\\n\\n\\n'+lang.url+'\\n'+input+'\\n\\n'+cver+'\\n'+contact,ask:ask}}else{\nif(script.urls?.match(/(m-r.pw|moody)/)){\ninput=input.replace(/\\?.*/g, '')\nif(input.match(/\\/(?:reels?|tv|igtv)\\//i)){out.urls=p.reel.replace(/input/g, input);out.post=1}else{\nout.urls=(input.includes('instagram.com/')?p.insta.replace(/input/g, input):p.threads)\n}\nif(out.urls.endsWith('media?url=')){\nout.urls=out.urls+encodeURIComponent(input)}else if(out.urls.includes('twitterpicker')){\nout.urls=out.urls+m}else if(out.urls.match(/(?:ajax|graphql)/i)){\nout.post=1\n}\nout.origin='https://www.instagram.com';\nout.referer=input\n}else if(script.urls?.includes('/graphql')) {p=JSON.parse(p);if(p=p.data?.shortcode_media??p.graphql?.shortcode_media??p.data?.xdt_shortcode_media){let nodes=['GraphSidecar','XDTGraphSidecar'].includes(p['__typename'])?p['edge_sidecar_to_children']['edges'].map(a=\u003ea.node):[p];\nout.urls = []\nnodes.forEach(d=\u003e{\nu = (d['is_video']==true?d['video_url']:d['display_url']).replace(/^https:\\/\\/[^\\/]+/, 'https://scontent.cdninstagram.com')\nif (u.match(/\\/[0_]+\\.mp4/i)) {\ne0 = 1\n} else { e0=0 }\nout.urls.push(u)\n})\nif (e0==1) {\nout={...out,urls:'https://fastdl.app/api/convert',fn:'R⤓Download.txt', post:1}\n} else {\nout={...out,fn:`@${p.owner.username} - R⤓Download`,finish:true}\n}\n}else{\nout={...out, prompt:lang.private+'\\n\\n'+lang.url+'\\n'+input+'\\n\\n'+cver+'\\n'+contact,ask:ask}\n}\n}else if(script.urls?.includes('fastdl.app')){\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')\u0026\u0026JSON.parse(p).url){\nout={...out,urls:p.replace(/^.+\\\"url\\\"/gm,'').match(/\\=http.+?\u0026filename\\=/g).map(d =\u003e {\nreturn (decodeURIComponent(JSON.parse('{\"u\":\"' + d.replace(/^\\=/gm,'').replace(/\u0026filename\\=/gm,'') + '\"}').u).replace(/^https:\\/\\/[^\\/]+/, 'https://scontent.cdninstagram.com'))\n}),fn:fn,finish:true}\n}\n}else if(script.urls?.includes('media?url=')){\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')\u0026\u0026JSON.parse(p).image_urls){\nout={...out,urls:p.match(/http[^\"]+/g).map(d =\u003e {\nreturn (JSON.parse('{\"u\":\"' + d + '\"}').u)\n}),fn:fn,finish:true}\n}else{out={...out,prompt:error,ask:ask}}\n}else if(script.urls?.match(/com\\/(?:p|reels?|tv|igtv)\\//i)) {\n\tlet shortcode, doc_id\n\tout = {...out, referer:input, 'kx-request': 'X-Requested-With', 'x-request': 'XMLHttpRequest', 'kx-cftoken': 'X-CSRFToken', 'x-cftoken': p.match(/\"csrf_token\":\"([^\"]+)/)?.[1], 'x-ig-app': p.match(/\"X-IG-App-ID\":\"([^\"]+)/)?.[1]}\n\n\tif (!p.match(/\"appScopedIdentity\":\"\\d+/)) {\n\n\t\tlsd = p.match(/\"token\":\"([^\"]+)/)?.[1]\n\t} else {\n\t\tlsd = p.match(/\"LSD\":\\{\"token\":\"([^\"]+)/)?.[1]\n\t}\n\t\tout['x-lsd'] = lsd\n\t\tshortcode = p.match(/\"shortcode\":\"([^\"]+)/)?.[1]\n\n\t\tif ((js = p.match(/\u003clink rel=\"preload\" href=\"[^\"]+/g))?.length \u003e 4) {\n\t\t\tfor (i=2; i\u003c4 \u0026\u0026 !doc_id; i++) {\n\t\t\t\tout.urls = js[i].match(/[^\"]+$/)[0]\n\t\t\t}\n\t\t}\n\t\t\tif (shortcut.doc != '0') { out.urls = 'https://www.instagram.com/api/graphql';out.doc_id =  shortcut.doc; out.post=1 }\n\n} else if (script.urls?.includes('https://static.')) {\n\n\tout = {...out, referer:input, 'X-ASBD-ID':'129477', 'kx-request': 'X-Requested-With', 'x-request': 'XMLHttpRequest', 'kx-cftoken': 'X-CSRFToken', 'x-cftoken': script['x-cftoken'], 'x-ig-app': script['x-ig-app']}\n\n\t\t\t\tout.doc_id = p.match(/__d\\(\"PolarisPostActionLoadPostQueryQuery.+id:\"(\\d+)/m)?.[1]\nout.urls = 'https://www.instagram.com/api/graphql'\nout.post = 1\n\n} else if (script.urls?.includes('twitterpicker')){\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')\u0026\u0026p.match(/\\.(jpg|mp4)/i)){p=JSON.parse(p)\npp=p.media\npp.images.forEach(d=\u003e{dL.push(d?.variants?.[0]?.url)});pp.videos.forEach(d=\u003e{dL.push(d?.variants?.[0]?.url)})\nout={...out,urls:dL,fn:'@'+p.meta?.username+' - R⤓Download',finish:true}\n}else{\nif(input.includes('instagram.com')){\nout.urls = input } else {\nout={...out,prompt:error,ask:ask}}}\n}\n}\n//index insta 4\n}else if(input.match(/youtu(?:\\.be|be\\.com)/)){\nm=input.match(/(?:youtu\\.be\\/|youtube\\.com\\/(?:shorts\\/|watch\\?.*(?:vi?|embed)[\\=\\?\\/]))(.{11})/i)?.[1]\nif(p?.yt?.includes('convert.me/analyze') || shortcut?.yt?.includes('convert.me/analyze')){out.referer='https://en.y2mate.is/'}\nif(index=='2'){\nout={...out,urls:p?.yt,query:input,vt:'mp4',post:1}\n} else if(index=='3'){\ndd[`JPG - ${lang['thumb']}`]={urls:`https://i.ytimg.com/vi/${m}/maxresdefault.jpg`};dd[`JPG - ${lang['sthumb']}`]={urls:`https://i.ytimg.com/vi/${m}/hqdefault.jpg`}\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')\u0026\u0026p.includes('\"links\":')){\np=JSON.parse(p);links=p['links']['mp4'];links=Object.values(links);links.forEach((d, i)=\u003e{s=d.size.replace('٫','.');s=s.match(/\\d/i)?s:'unknown';;i=i+1;if((d.q).includes('p')){dL.push(dd[`MP4 - ${d.q} (${s.replace(' ','')})`]={k:d.k,urls:'https://9convert.com/api/ajaxConvert/convert',post:1});return dL}});out['prompt']=`\\n${p.title}\\n\\n${p.a}`;out['ask']=dd;\nout={...out,urls:'https://www.y2mate.com/mates/convertV2/index',fn:fn,vid:m,post:1}\n}else if(p.startsWith('{\"')\u0026\u0026p.endsWith('}')\u0026\u0026p.includes('quality\":\"')){\nout.urlb='uu'\np=JSON.parse(p);p?.formats?.video?.forEach((d,i)=\u003e{num=d.fileSize;sf=Math.round(parseInt(num)/1000000);if(sf\u003e1000){size=(num/(1024*1024*1024)).toFixed(2).toString()+'GB'}else if(!sf=='0'){size=(num/(1024*1024)).toFixed(2).toString()+'MB'}else{size=(num/1024).toFixed(2).toString()+'KB'};if(d.needConvert){dL.push(dd[`MP4 - ${d.quality} (${size})`]={hash:d.url,urls:p?.url,post:1})}else{dL.push(dd[`MP4 - ${d.quality} (${size})`]={urls:d.url.match(/http.+?y2mate\\.is/i)?.[0]})}})\nlet duration = p.formats.lengthSeconds\nout={...out,urls:p?.url,ask:dd,prompt:p.formats.title+'\\n'+Math.floor(duration/3600).toString().padStart(2,'0')+':'+Math.floor((duration%3600)/60).toString().padStart(2,'0')+':'+(duration%60).toString().padStart(2,'0')+'\\n',vid:m,post:1,fn:fn}\n}else{out={...out,prompt:error,ask:ask};out.errors=1}\n}else if(index=='4'){\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')){\np=JSON.parse(p);out.task=p?.taskId;\nif(shortcut?.yt?.match(/ajaxSearch\\/index/i)){out.finish=true;out.fn=fn}else{out.post=1}\nout={...out,urls:(p.taskId?script?.urls+'/task':p.dlink)}\n}else{out={...out,prompt:error,ask:ask}}\n}else if(script?.urls?.endsWith('task')){\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')){\npp=p\np=JSON.parse(p)\nif(p?.download){\nout={...out,urls:p.download,fn:fn,finish:true}\n}else if(pp?.includes('download_progress')){\nout={...out,urls:script?.urls,post:1,task:script.task,wait:5}\n}else{out={...out,prompt:error,ask:ask}}\n}else{out={...out,prompt:error,ask:ask}}\n}\n// index yout\n} else if(m=input.match(/http.+?imgur.\\w*\\/\\w+\\/(?:.+\\-)?(\\w+$)/i)?.[1]){\nif(index=='2'){\nout={...out,urls:'https://api.imgur.io/3/gallery/'+m,outh:'Client-ID 5dc6065411ee2ab',outhkey:'Authorization'}\n}else if(index=='3'){\nif(p.startsWith('{\"')){\npp=JSON.parse(p)\nout={...out,urls:pp.data.images.map(d=\u003e{return d.link}),finish:true,fn:(JSON.parse(p.match(/account_url\":\"([^\"]+)/i)?.[1].replace(/(^.*$)/g, '{\"user\":\"@$1 - R⤓Download\"}'))['user'])}\n}else{out={...out,prompt:error,ask:ask}}\n}\n// imgur index\n} else if(input.match(/(?:facebook\\.com|fb\\.watch|fbwat.ch)/i)){\nif(index=='2'){\nout['kx-request']='User-Agent'\nout['x-request']='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15'\nout={...out,urls:'https://x2mate.com/api/ajaxSearch',post:1}\n}else if(index\u003e='3'){\nif(p.startsWith('{\"') \u0026\u0026 p.match(/(sd\":\"|\\(SD\\))/i)){\np=JSON.parse(p.replace(/https:[^\\?]+\\.(?:net|com)\\\\?\\//g, 'https://scontent.xx.fbcdn.net/'))\nif (p?.data) {\nask=(p.data?.match(/\\(HD\\)/i) ?{HD:{urls:p.data?.match(/(http[^\"]+).{0,50}\\(HD\\)/i)?.[1]},SD:{urls:p.data?.match(/(http[^\"]+).{0,50}\\(SD\\)/i)?.[1]}}:{SD:{urls:p.data?.match(/(http[^\"]+).{0,50}\\(SD\\)/i)?.[1]}})\n} else {\nask=(p.links?.hd ?{HD:{urls:p.links.hd},SD:{urls:p.links.sd}}:{SD:{urls:p.links.sd}});\n}\nout={...out,ask:ask,prompt:'\\n'+lang.select+'\\n',fn:fn,finish:true}\n}else{\nif (script?.urls?.includes('x2mate')) {\nout={...out,urls:'https://savef.app/api/ajaxSearch',post:1}\n} else {\nif (!script?.ask) {\nout={...out,prompt:error,ask:ask}\n}\n}\n}\n}\n// f index\n} else if(input.match(/(instagram|snapchat|\\/(?:x|twitter))\\.com\\//i)){if(index=='2'){if(p.version){p.outhkey='tt';out=p\n}else{out={...out,prompt:error,ask:ask}}\n}\n}else if(input.match(/(?:tiktok|douyin).com\\//i)){\nif(index=='2'){\nout={...out,urls:p.tik[Math.floor(Math.random() * p.tik.length)],post:1}\n}else if(index=='3'){\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')\u0026\u0026JSON.parse(p).data){p=JSON.parse(p).data\np = p.replace(/\u0026amp\\;/g,\"\u0026\")\nout.urls = p.match(/(https[^\"]+)\".+?Download (MP.+?HD)/)?.[1] ?? p.match(/https[^\"]+\".+?Download (?:Image|Photo)/g).map(d =\u003e {\nreturn d.replace(/\".+/g, \"\")\n})\nout={...out,fn:fn,finish:true}\n}else{out={...out,prompt:error,ask:ask}}\n}\n}else if(input.match(/((?:ted|vimeo|dailymotion|flickr|rumble)\\.com|flic\\.kr)\\//i)){\nif(index=='2'){\nlet myArray=['https://videodownloaderguru.com/wp-json/aio-dl/video-data/','https://fbdown.online/wp-json/aio-dl/video-data/','https://videodownloaderguru.com/wp-json/aio-dl/video-data/','https://fbdown.online/wp-json/aio-dl/video-data/'];\nlet url=myArray[Math.floor(Math.random() * myArray.length)];\nout={...out,urls:url,post:1}\n}else if(index=='3'){\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')\u0026\u0026JSON.parse(p).medias){p=JSON.parse(p);\nif(p.medias.length\u003e1){p.medias.forEach(d=\u003e{if(d.extension.match(/(mp4|jpg|3gp|png|jpeg|jpge|mpeg|gif)/i)){dL.push(dd[d.extension.toUpperCase()+' - '+d.quality+' ('+d.formattedSize+')']={urls:d.url,finish:true})}})\nout={...out,prompt:p.title,ask:dd,fn:fn}\n}else{out={...out,urls:p.medias[0]?.url,fn:fn,finish:true}}\n}else{out={...out,prompt:error,ask:ask}}\n}\n}else if(input.match(/(linkedin|tumblr|9gag)\\.com/i)){\nif(index=='3'){\nif(p.includes('formats\":')){p=JSON.parse(p);p=p.raw.formats;p.forEach(d=\u003e{if(d.protocol.match(/https?/i)\u0026\u0026d.ext=='mp4'){dL.push(dd[d.format]={finish:true,urls:d.url})}});out={...out,prompt:p.title,ask:dd,fn:fn}\n}else{out={...out,prompt:error,ask:ask}}\n}else if(index=='2'){\nout.urls='https://nor.celsiusnarhwal.dev/api/extract?url='+input\n}\n// index linked\n}else if(m=input.match(/twitch\\.tv\\/(?:.+?\\/?clip\\/)?(.*)/i)?.[1]){\nif(index=='2'){\nout.urls=p.twitch+m\n} else if(index=='3'){\nif(p.startsWith('{\"')\u0026\u0026p.endsWith('}')\u0026\u0026JSON.parse(p).data[0]?.thumbnail_url){p=JSON.parse(p);r=p.data[0]?.thumbnail_url.replace(/-preview.*/gi,\"\")\nask={'1080p':{urls:r+'.mp4'},'720p':{urls:r+'-720.mp4'},'360p':{urls:r+'-360.mp4'}}\nout={...out,prompt:'\\n\\n'+p.data[0].title+'\\n\\n',ask:ask,fn:fn,finish:true}\n}else{out={...out,prompt:error,ask:ask}}\n}\n// index twitch\n}else if(input.match(/likee\\.(video|com)/i)){\nif(index=='2'){\nout={...out,urls:'https://likeedownloader.com/process',referer:'https://likeedownloader.com/facebook-video-downloader',post:1,id:input}\n}else if(index=='3'){\nif(p.match(/htt.+?sscdn.+Download/)){p=JSON.parse(p).template.match(/href=\"([^\"]+)/g).join('-').replace(/^.+?\\-href=\\\"/g,\"\")\nout={...out,urls:p,fn,finish:true}\n}else{out={...out,prompt:error,ask:ask}}\n}\n// index likee\n}else if(input.match(/(?:pinterest\\.com|pin\\.it)\\//i)){\nif(index=='2'){\nout={...out,urls:input}\n}else if(index=='3'){\nif(p.match(/\\.com\\/(originals|video)/i)){\nm=p.match(/imageSpec_orig\":\\{\"height\":\\d+,\"url\":\"[^\"]+|videoList[^\\}]+\\/720p\\/[^\"]+\\.mp4|http[^\"]+\\.gif/g)\nif(!m){m=p.match(/\\{\"__typename\":\"ImageDetails\",\"url\":\"[^\"]+/i)}\nm.forEach(d=\u003e{\ndL.push(JSON.parse(d.replace(/^.*(\"url\":\"[^\"]+\\.com\\/(original|videos)[^\"]+).*$/gi, '{$1\"}')).url)\n})\nuni = dL.filter(function(item, index) {\n  return dL.indexOf(item) === index;\n});\n\nout={...out,urls:uni,fn,finish:true}\n}else{out={...out,prompt:error,ask:ask}}\n}\n// pin\n}else if(index=='10'){out={...out,prompt:lang.notsupport+'\\n\\n'+lang.url+'\\n'+input+'\\n\\n'+cver,ask:ask}}\n// host\n}else{\nif(index=='10'){\nout={...out, prompt:'\\n'+lang.share+'\\n\\n\\n'+input+'\\n\\n'+cver+'\\n'+contact,ask:{[lang.exit]:{test:lang.exit}}}\n}\n}\n// input error\n} else {\nout.urls = serverurl\n}\n// update\n}\n//index1\n}\n// ext\ndocument.body.textContent=encodeURIComponent(JSON.stringify(out))\n}catch(e){document.write(e);}\n\u003c/script\u003e\n\u003c/html\u003e"
	}
}

const toLoad = for _ in Dictionary['index'] {
	const loaded = for _ in IfResult['urls'] {
		url(@RepeatItem2)
		const IfResult = if IfResult['post'] {
			formRequest(, "POST", {
				"R⤓Download_text": "{js['text']}",
				"R⤓Download_v": "{js['version']}",
				"URLz": "{js['input']}",
				"doc_id": "{js['doc_id']}",
				"hash": "{['hash']}",
				"id": "{js['id']}",
				"k": "{['k']}",
				"k_query": "{js['query']}",
				"lang": "en",
				"lang_code": "en",
				"lsd": "{js['x-lsd']}",
				"q": "{js['input']}",
				"query": "{js['query']}",
				"taskId": "{js['task']}",
				"variables": "{js['variables']}",
				"vid": "{js['vid']}",
				"{js['urlb']}": "{js['input']}"
			}, {
				"Origin": "{js['origin']}",
				"Referer": "{js['referer']}",
				"X-ASBD-ID": "129477",
				"X-FB-LSD": "{js['x-lsd']}",
				"X-IG-App-ID": "{js['x-ig-app']}",
				"X-IG-WWW-Claim": "0",
				"{js['cookieh']}": "{js['cookie']}",
				"{js['kx-cftoken']}": "{js['x-cftoken']}",
				"{js['kx-request']}": "{js['x-request']}"
			})
		} else {
			fileRequest(, "GET", {
				"Origin": "{js['origin']}",
				"Referer": "{js['referer']}",
				"x-guest-token": "{js['x-token']}",
				"x-twitter-active-user": "yes",
				"{js['outhkey']}": "{js['outh']}"
			})
		}
		setName(toLoad, js['fn'])
	}
	list()
	urlEncode("<html><!-- R⤓Download by @r07qxo --><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"initial-scale=1, width=device-width\"></head><body/><script>try{\nlet dict={}{Dictionary['script.a']}")
	const JavaScript = url("data:text/html,{}")
	const js = urlEncode(JavaScript)
	wait(js['wait'])
	if js['ask'] {
		chooseFromList(js['ask'], js['prompt'])
	}
	if IfResult['web'] {
		openURL(IfResult['web'])
	}
	if js['save'] {
		savePhoto(loaded)
		stop()
	}
}
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от aslamgopal

См. все

Вам также может понравиться

См. все
Реклама