ShareShortcuts
Fork “InstaDP”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så shorctutsink får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
39K
Gemt
2
Handlinger
47
Kategori
Sociale netværk
Version
1.0
Sprog
EN

Download or View instagram profile picture for any user via profile Link or Username

Features:

  • Multi-Language Arabic/English
  • Get Profile Picture by URL
  • Get Profile Picture by username
  • No out source API
  • Easy To Use

This shortcut uses Lemon Updater for updates

Nyheder

Version 1.0

First release

Versionshistorik
1.0 16. sep. 2022

First release

Hvad den gør

47 handlinger
  1. Dictionary
  2. Text
  3. Text
  4. If
  5. Dictionary
  6. If
  7. Dictionary
  8. Set Variable
    Resources
  9. Choose from Menu
    …
  10. Choose from Menu
    Resources (ByClipboard)
  11. Get Clipboard
  12. URL
  13. Set Variable
    Link
  14. Choose from Menu
    Resources (ByUsername)
  15. Ask for Input
    …
  16. Set Variable
    User
  17. URL
    https://www.instagram.com/…
  18. Set Variable
    Link
  19. Choose from Menu
    Resources (CheckUpdates)
  20. Get My Shortcuts
  21. Match Text
  22. If
  23. Run Shortcut
    Lemon Updater
  24. Stop This Shortcut
  25. If
  26. Show Alert
    InstaDP
  27. Open URLs
  28. Stop This Shortcut
  29. Show Notification
    …
  30. Make HTML from Rich Text
  31. Match Text
  32. Match Text
  33. Replace Text
  34. Replace Text
  35. Split Text
  36. Get Item from List
  37. Set Variable
    URL
  38. Get Contents of URL
    …
  39. Set Variable
    Contents
  40. Choose from Menu
    Which one do you want?
  41. Choose from Menu
    Resources (Download)
  42. Save to Photo Album
  43. Vibrate Device
  44. Show Notification
    …
  45. Choose from Menu
    Resources (View)
  46. Vibrate Device
  47. Show Result

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#define mac false
#include 'actions/web'
#include 'actions/shortcuts'
#include 'actions/sharing'
#define color violet
#define glyph picture

const Dictionary = {
	"Author": "Shortcuts.ink",
	"Name": "InstaDP",
	"RH ID": "12986",
	"Version": "1.0",
	"Website": "https://shortcuts.ink"
}
const Text = "1"

if Text == "1" {
} else {
}
@Resources = {
		"ByClipboard": "من خلال الرابط المنسوخ",
		"ByUsername": "من خلال اسم المستخدم",
		"CheckUpdates": "التحقق من وجود تحديثات",
		"Done": "تم حفظ الصوره",
		"Download": "تحميل الصوره",
		"EnterUsername": "يرجى ادخال اسم المستخدم",
		"FirstMessage": "كيف تريد تحميل الصوره",
		"LemonAlert": "يرجى تنصيب الاختصار Lemon Updater من اجل التحقق من وجود تحديثات",
		"View": "عرض سريع",
		"Working": "يرجى الانتظار…"
	}

menu @Resources['FirstMessage'] {
item @Resources['ByClipboard']:
	const Clipboard = getClipboard()
	url(Clipboard)
	@Link
item @Resources['ByUsername']:
	prompt(@Resources['EnterUsername'])
	@User
	url("https://www.instagram.com/{@User}")
	@Link
item @Resources['CheckUpdates']:
	getShortcuts()
	const Matches = containsText(, "Lemon Updater")
	if Matches {
		run("Lemon Updater", Dictionary)
		stop()
	} else {
		alert(@Resources['LemonAlert'], "InstaDP")
		openURL("https://routinehub.co/shortcut/11173/")
		stop()
	}
}
showNotification(@Resources['Working'], "🌀 Please Wait 🌀")
makeHTML(@Link)
containsText(, "(\"profile_pic_url\").*(\",)")
containsText(, "\"http.+?\"")
replaceText("\"", "")
const UpdatedText = replaceText("\", "")
const SplitText = splitText(UpdatedText)
getFirstItem(SplitText)
@URL
downloadURL(@URL)
@Contents

menu "Which one do you want?" {
item @Resources['Download']:
	const SavedPhotoMedia = savePhoto(@Contents)
	vibrate()
	showNotification(@Resources['Done'], "✅ Download Completed ✅", SavedPhotoMedia)
item @Resources['View']:
	vibrate()
	show(@Contents)
}
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra shorctutsink

Se alle

Du vil måske også kunne lide

Se alle
Annonce