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.
Novidades
Versão 2.0
- bugs fixes - add is.gd shortener option.
O que ele faz
49 ações-
CommentRobo 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
-
CommentThe website's ownership goes back to lnk.pw && Is.gd -
-
Dictionary
-
Dictionary
-
Text
-
Choose from List
-
Comment- lnk.pw started
-
If
-
If
-
Get URLs from Input
-
Set Variablein.url
-
If
-
If
-
Get Clipboard
-
If
-
Get URLs from Input
-
Set Variablein.url
-
If
-
Ask for InputIt seems you don’t have any stored url, Write below.
-
Get URLs from Input
-
Set Variablein.url
-
If
-
URL Encode
-
Text
-
Get Contents of URL…
-
Get Text from Input
-
Set Variableoutput
-
Get Dictionary Value
-
If
-
Get Dictionary Value
-
Copy to Clipboard
-
Show Notification
-
If
-
Get Dictionary Value
-
Show Notification
-
Stop This Shortcut
-
If
-
Comment- is.gd started
-
If
-
If
-
Get Clipboard
-
Text
-
Get Contents of URL…
-
Get Text from Input
-
Get URLs from Input
-
Copy to Clipboard
-
Show Notification
-
Stop This Shortcut
-
Comment- end
Ver como código
Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.
#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
Abrir no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de m2robot
Você também pode gostar
Publicidade