Scan med din iPhone for at installere
My awesome URL Shortener was inspired by someone else's shortcut.
Their shortcut lacked in the main functionality, but it made up for it with sloppy unnecessary steps, ultimately causing it to not function properly. (oops did I say that out loud.)
I cleaned it up making a version that also provides notifications for when the shortcut:
– cannot detect a URL input
– is successful in completing the shortening (automatically applied to your clipboard)
– shortcut has an error
Nyheder
Version 1.1
Upgraded to include Shortcuts Updater
Hvad den gør
11 handlinger-
Text
-
Get Contents of URL…
-
Get Text from Input
-
Copy to Clipboard
-
Show Notification…
-
CommentSuccessful – the shortened URL will come after STATUS. If it was unsuccessful – “Error” will come after STATUS. If you continuously keep running into an “Error” this can mean that you have more than a URL selected. (i.e. an entire cell in a table, w…
-
Get My Shortcuts
-
If
-
Dictionary
-
Run ShortcutShortcuts Updater
-
If
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'
#define color red
#define glyph shrinkArrow
const ContentsOfURL = fileRequest(, "GET")
const Text = getText(ContentsOfURL)
setClipboard(Text)
showNotification(Text, "SHORTEN URL STATUS:", false, Text)
/*
Successful – the shortened URL will come after STATUS.
If it was unsuccessful – “Error” will come after STATUS.
If you continuously keep running into an “Error” this can mean that you have more than a URL selected. (i.e. an entire cell in a table, will result in an error.)
*/
const MyShortcuts = getShortcuts()
if MyShortcuts['Name'] contains "Shortcuts Updater" {
const Dictionary = {
"Name": "Shorten URL",
"ShareID": 2181,
"Version": "1.1"
}
run("Shortcuts Updater", Dictionary)
} else {
}
Å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 jayes14
Du vil måske også kunne lide
Annonce