ShareShortcuts

Robo Shorten

m2robot
Dupliquer « Robo Shorten »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que m2robot soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
55K
Enregistré
2
Actions
49
Catégorie
Utilities
Version
2.0
Langue
EN

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.

Nouveautés

Version 2.0

- bugs fixes - add is.gd shortener option.

Historique des versions
2.0 10 sept. 2021

- bugs fixes - add is.gd shortener option.

1.0 10 sept. 2021

First release

Ce qu’il fait

49 actions
  1. Comment
    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
  2. Comment
    The website's ownership goes back to lnk.pw && Is.gd -
  3. Dictionary
  4. Dictionary
  5. Text
  6. Choose from List
  7. Comment
    - lnk.pw started
  8. If
  9. If
  10. Get URLs from Input
  11. Set Variable
    in.url
  12. If
  13. If
  14. Get Clipboard
  15. If
  16. Get URLs from Input
  17. Set Variable
    in.url
  18. If
  19. Ask for Input
    It seems you don’t have any stored url, Write below.
  20. Get URLs from Input
  21. Set Variable
    in.url
  22. If
  23. URL Encode
  24. Text
  25. Get Contents of URL
    …
  26. Get Text from Input
  27. Set Variable
    output
  28. Get Dictionary Value
  29. If
  30. Get Dictionary Value
  31. Copy to Clipboard
  32. Show Notification
  33. If
  34. Get Dictionary Value
  35. Show Notification
  36. Stop This Shortcut
  37. If
  38. Comment
    - is.gd started
  39. If
  40. If
  41. Get Clipboard
  42. Text
  43. Get Contents of URL
    …
  44. Get Text from Input
  45. Get URLs from Input
  46. Copy to Clipboard
  47. Show Notification
  48. Stop This Shortcut
  49. Comment
    - end

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de m2robot

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité