ShareShortcuts
Fork “Robo Shorten”

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 m2robot 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
55K
Saved
2
Actions
49
Category
Utilities
Version
2.0
Language
EN

Robo Shortener utility tools used for shortening links (urls), Just make sure you run it on a url or stored on your clipboard otherwise you have to write your link.

What's New

Version 2.0

- bugs fixes - add is.gd shortener option.

Version History
2.0 Sep 10, 2021

- bugs fixes - add is.gd shortener option.

1.0 Sep 10, 2021

First release

What it does

49 actions
  1. Comment
    Robo Shortener is a utility shortcut tools used for shorten links (url) Example : Actual url > https://www.mrrobot.ga/ lnk.pw > https://lnk.pw/tlyj is.gd > https://is.gd/hte9bA
  2. Comment
    The website's ownership goes back to lnk.pw && Is.gd -
  3. Dictionary
  4. Dictionary
  5. Text
  6. Choose from List
  7. Comment
    - lnk.pw started
  8. If
  9. If
  10. Get URLs from Input
  11. Set Variable
    in.url
  12. If
  13. If
  14. Get Clipboard
  15. If
  16. Get URLs from Input
  17. Set Variable
    in.url
  18. If
  19. Ask for Input
    It seems you don’t have any stored url, Write below.
  20. Get URLs from Input
  21. Set Variable
    in.url
  22. If
  23. URL Encode
  24. Text
  25. Get Contents of URL
    …
  26. Get Text from Input
  27. Set Variable
    output
  28. Get Dictionary Value
  29. If
  30. Get Dictionary Value
  31. Copy to Clipboard
  32. Show Notification
  33. If
  34. Get Dictionary Value
  35. Show Notification
  36. Stop This Shortcut
  37. If
  38. Comment
    - is.gd started
  39. If
  40. If
  41. Get Clipboard
  42. Text
  43. Get Contents of URL
    …
  44. Get Text from Input
  45. Get URLs from Input
  46. Copy to Clipboard
  47. Show Notification
  48. Stop This Shortcut
  49. Comment
    - end

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'
#define color blue
#define glyph chainlink

/*
Robo Shortener is a utility shortcut tools used for shorten links (url) 
Example : 
Actual url > https://www.mrrobot.ga/
lnk.pw > https://lnk.pw/tlyj
is.gd > https://is.gd/hte9bA
*/
/*
The website's ownership goes back to 
lnk.pw && Is.gd
-
*/
const Dictionary = {
	"is.gd": "https://is.gd/code",
	"lnk.pw": "https://lnk.pw/code"
}
const ChosenItem = chooseFromList(Dictionary, "Choose one option : ")
// - lnk.pw started


if ChosenItem == "https://lnk.pw/code" {
	if ShortcutInput contains "http" {
		getURLs(ShortcutInput)
		@inurl
	} else {
		if !ShortcutInput {
			getClipboard()
			if  contains "http" {
				getURLs()
				@inurl
			} else {
				prompt("It seems you don’t have any stored url, Write below.", "URL")
				getURLs()
				@inurl
			}
		} else {
		}
	}
	const MainURL = urlEncode(@inurl)
	const script = "https://api.lnk.pw/1.0/public/lnk.pw/link?long={MainURL}"
	const webScript = downloadURL(script)
	getText(webScript)
	@output
	const DictionaryValue = getValue(@output, "status")
	if DictionaryValue == "ok" {
		const DictionaryValue1 = getValue(@output, "link")
		setClipboard(DictionaryValue1, true)
		showNotification("", "Done, shorten link has been copied!", false)
	} else {
		const DictionaryValue2 = getValue(@output, "error_str")
		showNotification("", "Error, invalid url type make sure you have the right one!", false, DictionaryValue2)
	}
	stop()
} else {
	// - is.gd started

	if ShortcutInput contains "http" {
	} else {
		getClipboard()
	}
	const ContentsOfURL = downloadURL()
	getText(ContentsOfURL)
	const URLs = getURLs()
	setClipboard(URLs)
	showNotification("", "Done, shorten link has been copied!", false, URLs)
	stop()
}
// - end
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 m2robot

See All

You Might Also Like

See All
Advertisement