ShareShortcuts

Download Instagram

Download any type of instagram media

pola
Fazer fork de “Download Instagram”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que pola receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
18K
Salvo
0
Ações
33
Categoria
Social Network
Versão
1.0
Idioma
EN

Download any type of instagram media

Novidades

Versão 1.0

First release

Histórico de versões
1.0 18 de abr de 2025

First release

O que ele faz

33 ações
  1. Comment
    Download Instagram Version: 1.2 ~•~•~•~•~•~•~•~•~•~•~•~•~ - Autor: @Pola219
  2. Comment
    Download photos and videos from posts or stories. Works with app and Safari, on iPhone and iPad.
  3. Comment
    ~•~•~•~•~•~•~•~•~•~•~•~•~ ⬇️ Start Of Check Update ⬇️
  4. Text
  5. Get Contents of URL
    https://updatekit.mikebeas.com/v1
  6. Get Dictionary from Input
  7. Set Variable
    Data
  8. Get Dictionary Value
  9. If
  10. Text
  11. Choose from Menu
    …
  12. Choose from Menu
    Update
  13. Open URLs
  14. Stop This Shortcut
  15. Choose from Menu
    Skip
  16. Comment
    ~•~•~•~•~•~•~•~•~•~•~•~•~ ⬆️ End Of Update Check ⬆️
  17. Comment
    Download photos and videos from posts or stories. Works with app and Safari, on iPhone and iPad.
  18. If
  19. URL
    https://
  20. Get Type
  21. Get Type
  22. If
  23. Replace Text
  24. URL
  25. If
  26. Run JavaScript on Web Page
  27. Get Contents of URL
    https://savegram.app/api/ajaxSearch
  28. Dictionary
  29. Base64 Encode
  30. URL Encode
  31. URL
    data:text/html;base64,…
  32. Open URLs
  33. Stop This Shortcut

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#include 'actions/web'
#define color red
#define glyph dramaMask

/*
Download Instagram 
Version: 1.2
~•~•~•~•~•~•~•~•~•~•~•~•~
- Autor: @Pola219
*/
// Download photos and videos from posts or stories. Works with app and Safari, on iPhone and iPad.

/*
~•~•~•~•~•~•~•~•~•~•~•~•~
⬇️ Start Of Check Update ⬇️
*/
const ContentsOfURL = jsonRequest("https://updatekit.mikebeas.com/v1", "POST", {
	"shortcut": {
		"id": "20805",
		"module": "routinehub",
		"version": "{}"
	}
})
getDictionary(ContentsOfURL)
@Data
const DictionaryValue = getValue(@Data, "update")

if DictionaryValue ==  {
	menu  {
	item "Update":
		openURL(@Data)
		stop()
	item "Skip":
	}
}
/*
~•~•~•~•~•~•~•~•~•~•~•~•~
⬆️ End Of Update Check ⬆️
*/
// Download photos and videos from posts or stories. Works with app and Safari, on iPhone and iPad.


if ShortcutInput {
	const URL = url("https://")
	const URLType = typeOf(URL)
	const Type = typeOf(ShortcutInput)
	if Type == URLType {
		const UpdatedText = replaceText("\?.*$", "?__a=1", ShortcutInput, true)
		const URL1 = url(UpdatedText)
		if URL1 {
			const html = runJavaScriptOnWebpage("const myHeaders = new Headers();\nmyHeaders.append(\"User-Agent\", \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36\");\n\nconst requestOptions = {\n  method: \"GET\",\n  headers: myHeaders,\n  redirect: \"follow\"\n};\n\nfetch(\"{URL1}\", requestOptions)\n  .then((response) => response.text())\n  .then((result) => completion(result))\n  .catch((error) => completion(error));")
			formRequest("https://savegram.app/api/ajaxSearch", "POST", {
				"html": "{html}",
				"lang": "en",
				"q": "{ShortcutInput}",
				"t": "media"
			}, {
				"Cookie": "_ga=GA1.1.1020413314.1710559320; fpestid=5iUY1p1SW3uUcoV17Bn6CyjzeCNAyt60cPNvoEfanVOo3ydtyjAz50sz53m6xl5GltwreA; _ga_HYFL742GNR=GS1.1.1710573216.3.1.1710573227.0.0.0",
				"Origin": "https://savegram.app",
				"Referer": "https://savegram.app/en/instagram-private-download",
				"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
				"X-Requested-With": "XMLHttpRequest"
			})
			const Dictionary = {
				"data": {
					"html": "\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\u003ctitle\u003eDownload Instagram\u003c/title\u003e\u003cmeta charset=\\\"UTF-8\\\"\u003e\u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\\\"\u003e\u003cstyle\u003eul.download-box{width:100%;column-width:200px;list-style:none;margin:0;padding:0}ul.download-box img{width:100%;margin-bottom:10px;background-color:#eee;border-radius:.25rem;max-width:100%;height:auto;aspect-ratio:1;object-fit:cover}.download-items__btn a{background:#333;padding:20px 0;margin-bottom:10px;display:block;text-align:center;color:#fff;text-decoration:none;border-radius:10px;font-size:13px;font-weight:400;color:#212529;text-align:center;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;color:#fff;background-color:#007bff;border-color:#007bff}.download-items__btn a:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.row.back-home{display:none}body{font-family:-apple-system,BlinkMacSystemFont,\\\"Segoe UI\\\",Roboto,\\\"Helvetica Neue\\\",Arial,\\\"Noto Sans\\\",\\\"Liberation Sans\\\",sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\",\\\"Segoe UI Symbol\\\",\\\"Noto Color Emoji\\\"}select.minimal{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;margin-bottom:10px}i.icon:before{font-style:normal;font-size:20px;background:rgba(255,255,255,0.7);width:50px;height:50px;display:block;text-align:center;line-height:50px;border-radius:220px}.icon-dlvideo:before{content:\\\"▶️\\\";font-style:normal;font-size:21px;background:#fff;width:50px;height:50px;display:block;text-align:center;line-height:50px;border-radius:220px}.download-items__thumb{position:relative;display:flex;justify-content:center;align-items:center}span.format-icon{position:absolute}.icon-dlimage:before{content:\\\"🏞️\\\"}\u003c/style\u003e\u003c/head\u003e\\n\u003cbody\u003e\\n\u003cscript\u003efunction getPhotoLink(n, t) {\\n    var i = t.value;\\n    document.getElementById(\\\"photo_dl_\\\" + n).setAttribute(\\\"href\\\", i);\\n}\\n\u003c/script\u003e\\n{['data']}\u003cscript\u003edocument.querySelectorAll('img').forEach(function(img) {\\n    img.alt = \\\"SaveGram.App\\\";\\n});\\n\u003c/script\u003e\\n\u003c/body\u003e\u003c/html\u003e"
				}
			}
			base64Encode(Dictionary['data.html'])
			urlEncode()
			const URL2 = url("data:text/html;base64,{}")
			openURL(URL2)
			stop()
		}
	}
}
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de pola

Ver tudo

Você também pode gostar

Ver tudo
Publicidade