ShareShortcuts

Utilities

Basically Uti

arandomguy24
Dupliquer « Utilities »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que arandomguy24 soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
40K
Enregistré
0
Actions
86
Catégorie
Utilities
Version
1.0
Langue
EN

Aperçu

Basically Uti

Nouveautés

Version 1.0

First release

Historique des versions
1.0 11 juil. 2022

First release

Ce qu’il fait

86 actions
  1. Comment
    DO NOT CHANGE ANYTHING ALSO DON’T CHANGE THE NAME OR THIS WON’T WORK
  2. Comment
    Made by @ArandomGuy24 for RoutineHub https://www.routinehub.co/user/ArandomGuy24 Also I used [Eᴍʙᴇᴅ-ᴀ-Uᴘᴅᴀᴛᴇ] for the update system https://routinehub.co/shortcut/2672/
  3. Get URLs from Input
  4. Set Variable
    LinkShortenerInput
  5. Repeat
  6. Dictionary
  7. Set Variable
    self
  8. Set Variable
    LocalData
  9. Get IP Address
  10. Count
  11. If
  12. Show Alert
  13. If
  14. URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  15. Get Contents of URL
    …
  16. If
  17. Dictionary
  18. Text
  19. URL
    data:text/html,…
  20. Get Contents of Web Page
  21. If
  22. If
  23. If
  24. Text
  25. If
  26. Text
  27. Choose from Menu
    … … Update checking with [Eᴍʙᴇᴅ-ᴀ-Uᴘᴅᴀᴛᴇ]
  28. Choose from Menu
    Install result (Version)
  29. URL
    https://routinehub.co/download/…
  30. Open URLs
  31. Stop and Output
  32. Choose from Menu
    Later
  33. If
  34. Show Alert
  35. Choose from Menu
  36. Choose from Menu
    Message Spam
  37. Ask for Input
    What do you want to spam
  38. Set Variable
    Words
  39. Ask for Input
    How much times
  40. Set Variable
    Amount
  41. Select Contacts
  42. Repeat
  43. Send Message
  44. Show Notification
    Spam complete
  45. Run Shortcut
    Utilities
  46. Choose from Menu
    Call spam (Coming soon)
  47. Run Shortcut
    Utilities
  48. Choose from Menu
    Link shortener
  49. If
  50. Ask for Input
    What link do you want to shorten?
  51. Set Variable
    LinkShortenerInput
  52. URL
    https://shorter.tins.ml/api/new?url=…
  53. Get Contents of URL
    …
  54. Get Dictionary Value
  55. Set Variable
    LinkShortenerLink
  56. If
  57. Get Contents of URL
    …
  58. Get Dictionary Value
  59. Set Variable
    LinkShortenerStatus
  60. Show Alert
  61. Run Shortcut
    Utilities
  62. If
  63. Choose from Menu
    Success …
  64. Choose from Menu
    Save to clipboard
  65. Copy to Clipboard
  66. Show Notification
    Saved
  67. Run Shortcut
    Utilities
  68. Choose from Menu
    Open Secret apps
  69. Choose from Menu
    Secret app
  70. Choose from Menu
    Xcode previews
  71. Open App
  72. Choose from Menu
    FeedBack
  73. Open App
  74. Stop This Shortcut
  75. Choose from Menu
    Rickroll links
  76. Text
  77. Quick Look
  78. Run Shortcut
    Utilities
  79. Choose from Menu
    Upload To Imgur
  80. Select Photos
  81. Imgur Upload
  82. Copy to Clipboard
  83. Show Notification
    Link Copied To Clipboard
  84. Run Shortcut
    Utilities
  85. Choose from Menu
    Quit
  86. Stop This Shortcut

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#include 'actions/web'
#define color blue
#define glyph magnifyingGlass

/*
DO NOT CHANGE ANYTHING 
ALSO DON’T CHANGE THE NAME OR THIS WON’T WORK
*/
/*
Made by @ArandomGuy24 for RoutineHub

https://www.routinehub.co/user/ArandomGuy24

Also I used [Eᴍʙᴇᴅ-ᴀ-Uᴘᴅᴀᴛᴇ] for the update system
https://routinehub.co/shortcut/2672/
*/
getURLs(ShortcutInput)
@LinkShortenerInput

repeat _ for nil {
	@self = {
		"Author": "@ArandomGuy24",
		"ID": "11835",
		"Name": "Utillities",
		"Version": "1.7"
	}
	@LocalData
	const CurrentIPAddress = getExternalIP()
	const Count = count(CurrentIPAddress)
	if Count == 0 {
		confirm("[Eᴍʙᴇᴅ-ᴀ-Uᴘᴅᴀᴛᴇ] Could not check for updates, there is no internet connection.")
	} else {
		url("https://routinehub.co/api/v1/shortcuts/{@LocalData['ID']}/versions/latest")
		const result = downloadURL()
		if result contains "success" {
			const CompareVersionsData = {
				"current": "{@LocalData['Version']}",
				"new": "{result['Version']}"
			}
			const CompareVersionsHTML = "<html><head></head><body><script>\n// Embed-a-Engine 1.0\nfunction cmp (a, b) {\nlet pa = a.split('.');\nlet pb = b.split('.');\nfor (let i = 0; i < Math.max(pa.length, pb.length); i++) {\nlet na = Number(pa[i]);\nlet nb = Number(pb[i]);\nif (isNaN(na)) na = 0;\nif (isNaN(nb)) nb = 0;\nif (na > nb) return \\"RollbackAvailable\\";\nif (nb > na) return \\"UpdateAvailable\\";\n}\nreturn \\"NoChanges\\";\n};\nlet data = {CompareVersionsData};\ndocument.write(cmp(data.current, data.new));\n</script></body></html>"
			url("data:text/html,{CompareVersionsHTML}")
			const ContentsOfWebPage = getWebpageContents()
			if ContentsOfWebPage == "NoChanges" {
			} else {
				if ContentsOfWebPage == "RollbackAvailable" {
				} else {
				}
				menu "{}\n\n{result['Notes']}\n\nUpdate checking with [Eᴍʙᴇᴅ-ᴀ-Uᴘᴅᴀᴛᴇ]" {
				item "Install {result['Version']}":
					const URL = url("https://routinehub.co/download/{result['id']}")
					openURL(URL)
					output(URL)
				item :
				}
			}
		} else {
			alert("Could not check for updates because of a RoutineHub error:\n\n{result['message']}", "")
		}
	}
}

menu nil {
item "Message Spam":
	prompt("What do you want to spam", "Text")
	@Words
	prompt("How much times", "Number")
	@Amount
	const Contacts = selectContact()
	repeat _ for @Amount {
		sendMessage(Contacts, @Words, false)
	}
	showNotification("Spam complete", RepeatResults)
	runSelf()
item "Call spam (Coming soon)":
	runSelf()
item "Link shortener":
	if !@LinkShortenerInput {
		prompt("What link do you want to shorten?", "URL")
		@LinkShortenerInput
	}
	url("https://shorter.tins.ml/api/new?url={@LinkShortenerInput}")
	const ContentsOfURL = downloadURL()
	@LinkShortenerLink = ContentsOfURL['short_url']
	if !@LinkShortenerLink {
		const ContentsOfURL1 = downloadURL(@LinkShortenerLink)
		@LinkShortenerStatus = ContentsOfURL1['message']
		confirm(@LinkShortenerStatus)
		runSelf()
	} else {
		menu "Success {@LinkShortenerLink}" {
		item "Save to clipboard":
			setClipboard(@LinkShortenerLink)
			showNotification("Saved", @LinkShortenerLink)
			runSelf()
		}
	}
item "Open Secret apps":
	menu "Secret app" {
	item "Xcode previews":
		openApp("com.apple.dt.XcodePreviews")
	item "FeedBack":
		openApp("com.apple.appleseed.FeedbackAssistant")
	}
	stop()
item "Rickroll links":
	const Text = "https://bit.do/YeetYeet\n\nhttps://bit.ly/3shS6WA\n\nhttps://tomorrowtides.com\n\nhttps://theworldthesedays.com\n\nhttps://www.latlmes.com/breaking/breaking-news-1"
	quicklook(Text)
	runSelf()
item "Upload To Imgur":
	const Photos = selectPhotos()
	rawAction("is.workflow.actions.imgur.upload", {
		"WFImgurDirectLink": true,
		"WFInput": "Photos"
	})
	setClipboard(ImgurURLs)
	showNotification("Link Copied To Clipboard", MenuResult)
	runSelf()
item "Quit":
	stop()
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de arandomguy24

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité