ShareShortcuts

Shorten URL

My awesome URL Shortener was inspired by someone else's shortcut

jayes14
Fork “Shorten URL”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så jayes14 får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
38K
Gemt
3
Handlinger
11
Kategori
Værktøjer
Version
1.1
Sprog
EN

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

Versionshistorik
1.1 27. sep. 2022

Upgraded to include Shortcuts Updater

1.0 27. sep. 2022

First release

Hvad den gør

11 handlinger
  1. Text
  2. Get Contents of URL
    …
  3. Get Text from Input
  4. Copy to Clipboard
  5. Show Notification
    …
  6. Comment
    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, w…
  7. Get My Shortcuts
  8. If
  9. Dictionary
  10. Run Shortcut
    Shortcuts Updater
  11. If

Vis som kode
Beta

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

Se alle

Du vil måske også kunne lide

Se alle
Annonce