ShareShortcuts
Fork “URL’s”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so hunter9888x gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
64K
Saved
2
Actions
63
Category
Utilities
Version
1.0
Language
EN

Handy URL shortcuts

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

What's New

Version 1.0

First release

Version History
1.0 Dec 8, 2019

First release

What it does

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

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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()
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by hunter9888x

See All

You Might Also Like

See All
Advertisement