ShareShortcuts
Fork “R⤓Download”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so aslamgopal gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
45K
Saved
7
Actions
23
Category
API
Version
1.0
Language
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.

What's New

Version 1.0

First release

Version History
1.0 May 27, 2025

First release

What it does

23 actions
  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

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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()
	}
}
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by aslamgopal

See All

You Might Also Like

See All
Advertisement