Handy URL shortcuts
RoutineHub Link Different options in a compact shortcut. - Shorten - Expand - Open - Upload File - Upload Image
Nyheder
Version 1.0
First release
Hvad den gør
63 handlinger-
Choose from Menu
-
Choose from MenuExpand
-
Get Clipboard
-
Get URLs from Input
-
Expand URL
-
Copy to Clipboard
-
Choose from MenuShorten
-
Get Clipboard
-
Get URLs from Input
-
Set VariableOriginal
-
Choose from MenuChoose an URL:
-
Choose from Menukutt.it
-
URLhttps://kutt.it/api/url/submit
-
Get Contents of URL…
-
Get Dictionary Value
-
Choose from Menutiny.ph
-
URLhttp://tiny.ph/api/url/create
-
Get Contents of URL…
-
Get Dictionary Value
-
URLhttp://tiny.ph/…
-
Choose from Menutinyurl.com
-
URLhttp://tinyurl.com/api-create.php?url=…
-
Get Contents of URL…
-
Choose from Menubit.ly
-
URLhttp://api.bit.ly/v3/shorten?login=workflowshortener&apiKey=R_83dbcc3a4ace484883066fe63d76580f&longURL=…
-
Get Contents of URL…
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Variable
-
Copy to Clipboard
-
Choose from MenuUpload
-
Choose from Menu
-
Choose from MenuImage
-
Select Photos
-
Imgur Upload
-
Copy to Clipboard
-
Choose from MenuFile
-
Get File
-
Get Link to File
-
Copy to Clipboard
-
Choose from MenuOpen
-
Get Clipboard
-
Get URLs from Input
-
Open URLs
-
Choose from MenuReddit
-
Choose from Menu
-
Choose from MenuOpen in Apollo
-
If
-
Get URLs from Input
-
Replace Text
-
Open URLs
-
If
-
Show AlertD’oh
-
Choose from MenuView deleted comments
-
Set VariableUrlfull
-
Get Component of URL
-
Set VariablePath
-
Get Component of URL
-
Replace Text
-
Set VariableHost
-
Text
-
Open URLs
-
Stop This Shortcut
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/web'
#include 'actions/sharing'
#define color blue
#define glyph compass
const ResultaatMenu = menu nil {
item "Expand":
getClipboard()
getURLs()
const ExpandedURL = expandURL()
setClipboard(ExpandedURL)
item "Shorten":
getClipboard()
getURLs()
@Original
menu "Choose an URL:" {
item "kutt.it":
url("https://kutt.it/api/url/submit")
const ContentsOfURL = jsonRequest(, "POST", {
"target": "{@Original}"
}, {
"X-API-Key": "uozEMj7pNT6ywmiCM9FY45pHVQ3J9HH6dJvElxCM"
})
item "tiny.ph":
url("http://tiny.ph/api/url/create")
const ContentsOfURL1 = formRequest(, "POST", {
"url": "{@Original}"
})
url("http://tiny.ph/{['hash']}")
item "tinyurl.com":
url("http://tinyurl.com/api-create.php?url={@Original}")
downloadURL()
item "bit.ly":
url("http://api.bit.ly/v3/shorten?login=workflowshortener&apiKey=R_83dbcc3a4ace484883066fe63d76580f&longURL={@Original}")
const ContentsOfURL2 = downloadURL()
const DictionaryValue = getValue(ContentsOfURL2, "data")
}
// TODO: Get Variable not supported: Assign variable here to 'ResultaatMenu'.
setClipboard(ResultaatMenu)
item "Upload":
menu nil {
item "Image":
const Photos = selectPhotos()
rawAction("is.workflow.actions.imgur.upload", {
"WFImgurAnonymous": true,
"WFImgurDirectLink": true,
"WFImgurTitle": "{CurrentDate}",
"WFInput": "Photos"
})
setClipboard(ImgurURLs)
item "File":
const File = getFile("")
const LinkToFile = getFileLink(File)
setClipboard(LinkToFile)
}
item "Open":
getClipboard()
const URLs = getURLs()
openURL(URLs)
item "Reddit":
menu nil {
item "Open in Apollo":
if ShortcutInput contains "reddit.com" {
getURLs(ShortcutInput)
const UpdatedText = replaceText(".+?(?=reddit\.com)", "apollo://", false, true)
openURL(UpdatedText)
} else {
alert("That’s not a reddit link!", "D’oh")
}
item "View deleted comments":
@Urlfull = ShortcutInput
getURLDetail(@Urlfull, "Path")
@Path
getURLDetail(@Urlfull, "Host")
replaceText("reddit", "removeddit", false, false)
@Host
const Text = "{@Host}{@Path}"
openURL(Text)
}
}
stop()
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra hunter9888x
Du vil måske også kunne lide
Annonce