ShareShortcuts

Shorten URL

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

jayes14
Fazer fork de “Shorten URL”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que jayes14 receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
38K
Salvo
3
Ações
11
Categoria
Utilities
Versão
1.1
Idioma
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

Novidades

Versão 1.1

Upgraded to include Shortcuts Updater

Histórico de versões
1.1 27 de set de 2022

Upgraded to include Shortcuts Updater

1.0 27 de set de 2022

First release

O que ele faz

11 ações
  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

Ver como código
Beta

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 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 {
}
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 jayes14

Ver tudo

Você também pode gostar

Ver tudo
Publicidade