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.
Что нового
Версия 2.0
- bugs fixes - add is.gd shortener option.
Что делает
Действий: 49-
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
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от m2robot
Вам также может понравиться
Реклама