ShareShortcuts
„Robo Shorten“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit m2robot die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
55K
Gesichert
2
Aktionen
49
Kategorie
Utilities
Version
2.0
Sprache
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.

Neue Funktionen

Version 2.0

- bugs fixes - add is.gd shortener option.

Versionsverlauf
2.0 10. Sep 2021

- bugs fixes - add is.gd shortener option.

1.0 10. Sep 2021

First release

Was er macht

49 Aktionen
  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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von m2robot

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung