ShareShortcuts

lnk.pw

You can shot any link with lnk.pw(https://lnk.pw) ---

yas8p
Fork “lnk.pw”

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 yas8p 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
53K
Saved
2
Actions
37
Category
API
Version
1.0
Language
EN

You can shot any link with lnk.pw


What's New

Version 1.0

First release

Version History
1.0 May 15, 2021

First release

What it does

37 actions
  1. Text
  2. If
  3. If
  4. Show Result
  5. Stop This Shortcut
  6. If
  7. Show Result
  8. Stop This Shortcut
  9. Choose from Menu
    lnk.pw - Twitter:Yas8p
  10. Choose from Menu
    Custom URLs
  11. Ask for Input
    lnk.pw/**
  12. Replace Text
  13. Text
  14. Choose from Menu
    Random
  15. Get Contents of URL
    http://2g.be/twitch/randomnumber.php?=defstart=1&defend=999
  16. Get Numbers from Input
  17. Split Text
  18. Get Item from List
  19. Text
  20. Get Contents of URL
    …
  21. If
  22. Replace Text
  23. If
  24. Get Dictionary from Input
  25. If
  26. Get Contents of URL
    http://www.randomnumberapi.com/api/v1.0/random?min=1&max=30&count=1
  27. Get Numbers from Input
  28. Get Contents of URL
    https://api.lnk.pw/1.0/public/lnk.pw/link?long=…&custom=……
  29. Set Variable
    result
  30. Get Dictionary Value
  31. Vibrate Device
  32. If
  33. Get Dictionary Value
  34. Copy to Clipboard
  35. If
  36. Get Dictionary Value
  37. Show Alert
    Error

View as code
Beta

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

#define mac false
#include 'actions/web'
#include 'actions/text'
#define color yellow
#define glyph compass


if  contains "http" {
	if  contains "lnk.pw" {
		show("You can’t short link twice.")
		stop()
	}
} else {
	show("No link!\ncopy link please.")
	stop()
}

menu "lnk.pw - Twitter:Yas8p" {
item "Custom URLs ":
	const  = prompt("lnk.pw/**")
	const Space = replaceText(" ", "", true)
item "Random":
	const randomnumber = downloadURL("http://2g.be/twitch/randomnumber.php?=defstart=1&defend=999")
	const 3 = getNumbers(randomnumber)
	const SplitText = splitText("qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", "")
	const AZ = getListItem(SplitText, 0)
}
const ContentsOfURL = downloadURL()

if Space {
	const UpdatedText = replaceText("https://lnk.pw/", "", ContentsOfURL['link'], true)
	if UpdatedText == Space {
		getDictionary(ContentsOfURL)
	} else {
		const ContentsOfURL1 = downloadURL("http://www.randomnumberapi.com/api/v1.0/random?min=1&max=30&count=1")
		getNumbers(ContentsOfURL1)
		downloadURL("https://api.lnk.pw/1.0/public/lnk.pw/link?long={Clipboard}&custom={Space}{}")
	}
}
@result
const DictionaryValue = getValue(@result, "status")
vibrate()

if DictionaryValue == "ok" {
	const DictionaryValue1 = getValue(@result, "link")
	setClipboard(DictionaryValue1, true)
} else {
	alert(, "Error")
}
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 yas8p

See All

You Might Also Like

See All
Advertisement