ShareShortcuts
Dupliquer « URL’s »

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 hunter9888x 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
64K
Enregistré
2
Actions
63
Catégorie
Utilities
Version
1.0
Langue
EN

Handy URL shortcuts

RoutineHub Link Different options in a compact shortcut. - Shorten - Expand - Open - Upload File - Upload Image

Nouveautés

Version 1.0

First release

Historique des versions
1.0 8 déc. 2019

First release

Ce qu’il fait

63 actions
  1. Choose from Menu
  2. Choose from Menu
    Expand
  3. Get Clipboard
  4. Get URLs from Input
  5. Expand URL
  6. Copy to Clipboard
  7. Choose from Menu
    Shorten
  8. Get Clipboard
  9. Get URLs from Input
  10. Set Variable
    Original
  11. Choose from Menu
    Choose an URL:
  12. Choose from Menu
    kutt.it
  13. URL
    https://kutt.it/api/url/submit
  14. Get Contents of URL
    …
  15. Get Dictionary Value
  16. Choose from Menu
    tiny.ph
  17. URL
    http://tiny.ph/api/url/create
  18. Get Contents of URL
    …
  19. Get Dictionary Value
  20. URL
    http://tiny.ph/…
  21. Choose from Menu
    tinyurl.com
  22. URL
    http://tinyurl.com/api-create.php?url=…
  23. Get Contents of URL
    …
  24. Choose from Menu
    bit.ly
  25. URL
    http://api.bit.ly/v3/shorten?login=workflowshortener&apiKey=R_83dbcc3a4ace484883066fe63d76580f&longURL=…
  26. Get Contents of URL
    …
  27. Get Dictionary Value
  28. Get Dictionary Value
  29. Get Variable
  30. Copy to Clipboard
  31. Choose from Menu
    Upload
  32. Choose from Menu
  33. Choose from Menu
    Image
  34. Select Photos
  35. Imgur Upload
  36. Copy to Clipboard
  37. Choose from Menu
    File
  38. Get File
  39. Get Link to File
  40. Copy to Clipboard
  41. Choose from Menu
    Open
  42. Get Clipboard
  43. Get URLs from Input
  44. Open URLs
  45. Choose from Menu
    Reddit
  46. Choose from Menu
  47. Choose from Menu
    Open in Apollo
  48. If
  49. Get URLs from Input
  50. Replace Text
  51. Open URLs
  52. If
  53. Show Alert
    D’oh
  54. Choose from Menu
    View deleted comments
  55. Set Variable
    Urlfull
  56. Get Component of URL
  57. Set Variable
    Path
  58. Get Component of URL
  59. Replace Text
  60. Set Variable
    Host
  61. Text
  62. Open URLs
  63. 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'
#include 'actions/sharing'
#define color blue
#define glyph compass


const ResultaatMenu = menu nil {
item "Expand":
	getClipboard()
	getURLs()
	const ExpandedURL = expandURL()
	setClipboard(ExpandedURL)
item "Shorten":
	getClipboard()
	getURLs()
	@Original
	menu "Choose an URL:" {
	item "kutt.it":
		url("https://kutt.it/api/url/submit")
		const ContentsOfURL = jsonRequest(, "POST", {
			"target": "{@Original}"
		}, {
			"X-API-Key": "uozEMj7pNT6ywmiCM9FY45pHVQ3J9HH6dJvElxCM"
		})
	item "tiny.ph":
		url("http://tiny.ph/api/url/create")
		const ContentsOfURL1 = formRequest(, "POST", {
			"url": "{@Original}"
		})
		url("http://tiny.ph/{['hash']}")
	item "tinyurl.com":
		url("http://tinyurl.com/api-create.php?url={@Original}")
		downloadURL()
	item "bit.ly":
		url("http://api.bit.ly/v3/shorten?login=workflowshortener&apiKey=R_83dbcc3a4ace484883066fe63d76580f&longURL={@Original}")
		const ContentsOfURL2 = downloadURL()
		const DictionaryValue = getValue(ContentsOfURL2, "data")
	}
	// TODO: Get Variable not supported: Assign variable here to 'ResultaatMenu'.
	setClipboard(ResultaatMenu)
item "Upload":
	menu nil {
	item "Image":
		const Photos = selectPhotos()
		rawAction("is.workflow.actions.imgur.upload", {
			"WFImgurAnonymous": true,
			"WFImgurDirectLink": true,
			"WFImgurTitle": "{CurrentDate}",
			"WFInput": "Photos"
		})
		setClipboard(ImgurURLs)
	item "File":
		const File = getFile("")
		const LinkToFile = getFileLink(File)
		setClipboard(LinkToFile)
	}
item "Open":
	getClipboard()
	const URLs = getURLs()
	openURL(URLs)
item "Reddit":
	menu nil {
	item "Open in Apollo":
		if ShortcutInput contains "reddit.com" {
			getURLs(ShortcutInput)
			const UpdatedText = replaceText(".+?(?=reddit\.com)", "apollo://", false, true)
			openURL(UpdatedText)
		} else {
			alert("That’s not a reddit link!", "D’oh")
		}
	item "View deleted comments":
		@Urlfull = ShortcutInput
		getURLDetail(@Urlfull, "Path")
		@Path
		getURLDetail(@Urlfull, "Host")
		replaceText("reddit", "removeddit", false, false)
		@Host
		const Text = "{@Host}{@Path}"
		openURL(Text)
	}
}
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 hunter9888x

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité