Scanne avec ton iPhone pour installer
You can shot any link with lnk.pw
Nouveautés
Version 1.0
First release
Ce qu’il fait
37 actions-
Text
-
If
-
If
-
Show Result
-
Stop This Shortcut
-
If
-
Show Result
-
Stop This Shortcut
-
Choose from Menulnk.pw - Twitter:Yas8p
-
Choose from MenuCustom URLs
-
Ask for Inputlnk.pw/**
-
Replace Text
-
Text
-
Choose from MenuRandom
-
Get Contents of URLhttp://2g.be/twitch/randomnumber.php?=defstart=1&defend=999
-
Get Numbers from Input
-
Split Text
-
Get Item from List
-
Text
-
Get Contents of URL…
-
If
-
Replace Text
-
If
-
Get Dictionary from Input
-
If
-
Get Contents of URLhttp://www.randomnumberapi.com/api/v1.0/random?min=1&max=30&count=1
-
Get Numbers from Input
-
Get Contents of URLhttps://api.lnk.pw/1.0/public/lnk.pw/link?long=…&custom=……
-
Set Variableresult
-
Get Dictionary Value
-
Vibrate Device
-
If
-
Get Dictionary Value
-
Copy to Clipboard
-
If
-
Get Dictionary Value
-
Show AlertError
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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")
}
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 yas8p
Ça pourrait aussi te plaire
Publicité