Login About Gallery
Instagram Media Saver
Accepts
URLs
VARIABLES
‎Set variable ‎Input ‎to ‎Shortcut Input
COMMENT
‎First check if user is signed into Instagram within Scriptable app
MISSING
‎ Under Construction
SCRIPTING
‎Get ‎Value ‎for ‎loggedIn ‎in ‎Output
SCRIPTING
‎If ‎Dictionary Value ‎is ‎false
COMMENT
‎User is not logged in, trying to get the user to login now...
SCRIPTING
‎Show alert ‎Informational Message
Title
‎optional
Show Cancel Button
MISSING
‎ Under Construction
SCRIPTING
‎Exit shortcut with ‎Result
SCRIPTING
‎End If
DICTIONARY
VARIABLES
‎Set variable ‎Dict ‎to ‎MainDict
VARIABLES
‎Set variable ‎SName ‎to ‎Dict
COMMENT
‎1.58 - Fix for when media doesn't have a caption and error appears 1.57 - Fix for Caption grabbing 1.56 - Fix for constant rollback message 1.55 - Revamp for instagram code changes and now urilizing scriptable to maintain cookies and login presence. - Private items can now download without safari usage (except for private story) - Removed periodic update check to reduce unnecessary actions now that update checks are almost instantaneous - Remove input type checks as no longer needed
LIST
VARIABLES
‎Set variable ‎Yes No ‎to ‎List
NUMBER
‎1
VARIABLES
‎Set variable ‎1 ‎to ‎Number
DOCUMENTS
‎Create Folder
Service
‎iCloud Drive
Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'SName', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
SCRIPTING
‎If ‎File ‎does not have any value
LIST
TEXT
‎Where do you want your media stored? This setting is saved for future runs. To reset, delete the file "settings.json" at: iCloud Drive/Shortcuts/ ‎SName ‎ This can also be done from the main menu
SCRIPTING
‎Choose from ‎List
Prompt
‎[{'class': 'magic', 'value': 'Text', 'glyph': '', 'UUID': 'EDC965CE-11FE-4C1F-9666-26ADC5721089'}]
Select Multiple
DICTIONARY
DOCUMENTS
‎Save ‎Dictionary
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'SName', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}, {'value': '/settings.json', 'class': 'text'}]
Overwrite If File Exists
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎Settings ‎to ‎If Result
VARIABLES
‎Set variable ‎InitialSettings ‎to ‎Settings
TEXT
‎Settings
VARIABLES
‎Set variable ‎StorageLoc ‎to ‎Text
COMMENT
‎ Update Check 🔽🔽🔽
NETWORK
‎Get contents of ‎https://raw.githubusercontent.com/mvan231/Shortcuts/main/InstagramMediaSaver.json
‎Options Under Construction
SCRIPTING
‎If ‎Server ‎contains ‎success
TEXT
‎<html><head></head><body><script> // Swing Engine 1.2.2 // © D3W10 - 𝗗𝗼𝗻'𝘁 𝗰𝗼𝗽𝘆 𝘁𝗵𝗶𝘀 𝗰𝗼𝗱𝗲 𝘄𝗶𝘁𝗵𝗼𝘂𝘁 𝗽𝗲𝗿𝗺𝗶𝘀𝘀𝗶𝗼𝗻. function sue (a, b) { let pa = a.split('.'); let pb = b.split('.'); for (let i = 0; i < Math.max(pa.length, pb.length); i++) { let na = Number(pa[i]); let nb = Number(pb[i]); if (isNaN(na)) na = 0; if (isNaN(nb)) nb = 0; if (na > nb) return "Rollback"; if (nb > na) return "Update"; } if (a != b) return "Update"; return "Updated"; }; let data = {"current":" ‎Dict ‎","new":" ‎Server ‎"}; document.write(sue(data.current, data.new)); </script></body></html>
URL
‎data:text/html, ‎Engine Code
SAFARI
‎Get contents of web page at ‎URL
SCRIPTING
‎If ‎EngineResult ‎does not contain ‎Updated
SCRIPTING
‎If ‎EngineResult ‎is ‎Update
TEXT
‎⬆️ 𝗨𝗽𝗱𝗮𝘁𝗲 ⬆️ An update is available for ‎Server ‎, here are some information about it: 𝗡𝗮𝗺𝗲: ‎SName ‎ 𝗜𝗻𝘀𝘁𝗮𝗹𝗹𝗲𝗱 𝗩𝗲𝗿𝘀𝗶𝗼𝗻: ‎SName ‎ 𝗥𝗲𝗰𝗲𝗻𝘁 𝗩𝗲𝗿𝘀𝗶𝗼𝗻: ‎Dict ‎ 𝗥𝗲𝗹𝗲𝗮𝘀𝗲 𝗗𝗮𝘁𝗲: ‎Server ‎ 𝗖𝗵𝗮𝗻𝗴𝗲𝘀: ‎Server ‎ 𝗨𝗽𝗱𝗮𝘁𝗲 𝗰𝗵𝗲𝗰𝗸𝗶𝗻𝗴 𝘂𝘀𝗶𝗻𝗴 𝖲𝗐𝗂𝗇𝗀 𝖴𝗉𝖽𝖺𝗍𝖾𝗋 🄴
SCRIPTING
‎Otherwise
TEXT
‎⬇️ 𝗥𝗼𝗹𝗹𝗯𝗮𝗰𝗸 ⬇️ A rollback is available for ‎Dict ‎, probably because the owner of this shortcut changed the version numbers, 𝗶𝘁'𝘀 𝘃𝗲𝗿𝘆 𝗿𝗲𝗰𝗼𝗺𝗺𝗲𝗻𝗱𝗲𝗱 𝘁𝗼 𝗱𝗼 𝘁𝗵𝗶𝘀 𝗿𝗼𝗹𝗹𝗯𝗮𝗰𝗸! 𝗡𝗮𝗺𝗲: ‎SName ‎ 𝗜𝗻𝘀𝘁𝗮𝗹𝗹𝗲𝗱 𝗩𝗲𝗿𝘀𝗶𝗼𝗻: ‎SName ‎ 𝗥𝗲𝗰𝗲𝗻𝘁 𝗩𝗲𝗿𝘀𝗶𝗼𝗻: ‎Server ‎ 𝗥𝗲𝗹𝗲𝗮𝘀𝗲 𝗗𝗮𝘁𝗲: ‎Server ‎ 𝗖𝗵𝗮𝗻𝗴𝗲𝘀: ‎Server ‎ 𝗨𝗽𝗱𝗮𝘁𝗲 𝗰𝗵𝗲𝗰𝗸𝗶𝗻𝗴 𝘂𝘀𝗶𝗻𝗴 𝖲𝗐𝗂𝗇𝗀 𝖴𝗉𝖽𝖺𝗍𝖾𝗋 🄴
SCRIPTING
‎End If
DOCUMENTS
‎Show ‎If Result ‎in Quick Look
LIST
SCRIPTING
‎Choose from ‎List
Prompt
‎What to do?
Select Multiple
SCRIPTING
‎If ‎Chosen Item ‎is ‎If Result
DOCUMENTS
‎Replace ‎.*com ‎with ‎shortcuts:/ ‎in ‎Server
Case Sensitive
Regular Expression
SAFARI
‎Open ‎Updated Text
MISSING
‎output Under Construction
SCRIPTING
‎End If
SCRIPTING
‎End If
SCRIPTING
‎End If
COMMENT
‎Update check 🔼🔼🔼
SCRIPTING
‎If ‎Input ‎does not have any value
DICTIONARY
VARIABLES
‎Set variable ‎switches ‎to ‎Dictionary
SCRIPTING
‎If ‎Settings ‎contains ‎showSaveNotifications
VARIABLES
‎Set variable ‎on-or-off ‎to ‎Settings
SCRIPTING
‎If ‎on-or-off ‎is ‎Yes
TEXT
‎BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Save Notifications On; ORG:; PHOTO;ENCODING=b: ‎switches ‎ END:VCARD
SCRIPTING
‎Otherwise
TEXT
‎BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Save Notifications Off; ORG:; PHOTO;ENCODING=b: ‎switches ‎ END:VCARD
SCRIPTING
‎End If
SCRIPTING
‎Otherwise
NOTHING
‎Nothing
SCRIPTING
‎End If
TEXT
‎BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Run Shortcut (multi-post or from clipboard); ORG:; END:VCARD BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Reset Settings; ORG:; END:VCARD BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Delete URLs File (if it exists); ORG:; END:VCARD BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Delete Downloaded Media (iCloud Drive); ORG:; END:VCARD ‎If Result
SCRIPTING
‎Set name of ‎Text ‎to ‎menu.vcf
TEXT
‎Welcome to ‎SName ‎! You didn't share a post to the shortcut, so this menu allows some other features.
SCRIPTING
‎Choose from ‎Renamed Item
Prompt
‎[{'class': 'magic', 'value': 'Text', 'glyph': '', 'UUID': '29429BC2-ADB0-4116-99C0-58E9C60E1AE4'}]
Select Multiple
SCRIPTING
‎If ‎Chosen Item ‎contains ‎Notifications
SCRIPTING
‎If ‎Chosen Item ‎contains ‎On
SCRIPTING
‎Set ‎showSaveNotifications ‎to ‎No ‎in ‎Dictionary
SCRIPTING
‎Otherwise
SCRIPTING
‎Set ‎showSaveNotifications ‎to ‎Yes ‎in ‎Dictionary
SCRIPTING
‎End If
DOCUMENTS
‎Save ‎If Result
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'SName', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}, {'value': '/settings.json', 'class': 'text'}]
Overwrite If File Exists
SHORTCUTS
‎Run ‎SName
Input
‎Choose Variable
Show While Running
SCRIPTING
‎Exit shortcut with ‎Result
SCRIPTING
‎End If
NOTHING
‎Nothing
SCRIPTING
‎If ‎Chosen Item ‎contains ‎Delete URLs
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
SCRIPTING
‎Otherwise
SCRIPTING
‎If ‎Chosen Item ‎contains ‎Delete Downloaded Media
MISSING
‎file.getfoldercontents Under Construction
FILES
‎Filter ‎Contents of Folder ‎where
‎[{'class': 'filter-property', 'value': 'Name'}, {'class': 'filter-operator', 'value': 'is not'}, {'class': 'filter-benchmark', 'value': 'settings'}]
Sort by
‎None
Limit
SCRIPTING
‎Otherwise
SCRIPTING
‎If ‎Chosen Item ‎contains ‎Reset Settings
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
SCRIPTING
‎End If
SCRIPTING
‎End If
SCRIPTING
‎End If
SCRIPTING
‎If ‎If Result ‎has any value
DOCUMENTS
‎Delete ‎If Result
Confirm Before Deleting
SCRIPTING
‎Exit shortcut with ‎Result
SCRIPTING
‎End If
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
SCRIPTING
‎If ‎File ‎has any value

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 years ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

360 more actions