ShareShortcuts
„URL’s“ 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 hunter9888x 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
64K
Gesichert
2
Aktionen
63
Kategorie
Utilities
Version
1.0
Sprache
EN

Handy URL shortcuts

RoutineHub Link Different options in a compact shortcut. - Shorten - Expand - Open - Upload File - Upload Image

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 8. Dez 2019

First release

Was er macht

63 Aktionen
  1. Choose from Menu
  2. Choose from Menu
    Expand
  3. Get Clipboard
  4. Get URLs from Input
  5. Expand URL
  6. Copy to Clipboard
  7. Choose from Menu
    Shorten
  8. Get Clipboard
  9. Get URLs from Input
  10. Set Variable
    Original
  11. Choose from Menu
    Choose an URL:
  12. Choose from Menu
    kutt.it
  13. URL
    https://kutt.it/api/url/submit
  14. Get Contents of URL
    …
  15. Get Dictionary Value
  16. Choose from Menu
    tiny.ph
  17. URL
    http://tiny.ph/api/url/create
  18. Get Contents of URL
    …
  19. Get Dictionary Value
  20. URL
    http://tiny.ph/…
  21. Choose from Menu
    tinyurl.com
  22. URL
    http://tinyurl.com/api-create.php?url=…
  23. Get Contents of URL
    …
  24. Choose from Menu
    bit.ly
  25. URL
    http://api.bit.ly/v3/shorten?login=workflowshortener&apiKey=R_83dbcc3a4ace484883066fe63d76580f&longURL=…
  26. Get Contents of URL
    …
  27. Get Dictionary Value
  28. Get Dictionary Value
  29. Get Variable
  30. Copy to Clipboard
  31. Choose from Menu
    Upload
  32. Choose from Menu
  33. Choose from Menu
    Image
  34. Select Photos
  35. Imgur Upload
  36. Copy to Clipboard
  37. Choose from Menu
    File
  38. Get File
  39. Get Link to File
  40. Copy to Clipboard
  41. Choose from Menu
    Open
  42. Get Clipboard
  43. Get URLs from Input
  44. Open URLs
  45. Choose from Menu
    Reddit
  46. Choose from Menu
  47. Choose from Menu
    Open in Apollo
  48. If
  49. Get URLs from Input
  50. Replace Text
  51. Open URLs
  52. If
  53. Show Alert
    D’oh
  54. Choose from Menu
    View deleted comments
  55. Set Variable
    Urlfull
  56. Get Component of URL
  57. Set Variable
    Path
  58. Get Component of URL
  59. Replace Text
  60. Set Variable
    Host
  61. Text
  62. Open URLs
  63. Stop This Shortcut

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'
#include 'actions/sharing'
#define color blue
#define glyph compass


const ResultaatMenu = menu nil {
item "Expand":
	getClipboard()
	getURLs()
	const ExpandedURL = expandURL()
	setClipboard(ExpandedURL)
item "Shorten":
	getClipboard()
	getURLs()
	@Original
	menu "Choose an URL:" {
	item "kutt.it":
		url("https://kutt.it/api/url/submit")
		const ContentsOfURL = jsonRequest(, "POST", {
			"target": "{@Original}"
		}, {
			"X-API-Key": "uozEMj7pNT6ywmiCM9FY45pHVQ3J9HH6dJvElxCM"
		})
	item "tiny.ph":
		url("http://tiny.ph/api/url/create")
		const ContentsOfURL1 = formRequest(, "POST", {
			"url": "{@Original}"
		})
		url("http://tiny.ph/{['hash']}")
	item "tinyurl.com":
		url("http://tinyurl.com/api-create.php?url={@Original}")
		downloadURL()
	item "bit.ly":
		url("http://api.bit.ly/v3/shorten?login=workflowshortener&apiKey=R_83dbcc3a4ace484883066fe63d76580f&longURL={@Original}")
		const ContentsOfURL2 = downloadURL()
		const DictionaryValue = getValue(ContentsOfURL2, "data")
	}
	// TODO: Get Variable not supported: Assign variable here to 'ResultaatMenu'.
	setClipboard(ResultaatMenu)
item "Upload":
	menu nil {
	item "Image":
		const Photos = selectPhotos()
		rawAction("is.workflow.actions.imgur.upload", {
			"WFImgurAnonymous": true,
			"WFImgurDirectLink": true,
			"WFImgurTitle": "{CurrentDate}",
			"WFInput": "Photos"
		})
		setClipboard(ImgurURLs)
	item "File":
		const File = getFile("")
		const LinkToFile = getFileLink(File)
		setClipboard(LinkToFile)
	}
item "Open":
	getClipboard()
	const URLs = getURLs()
	openURL(URLs)
item "Reddit":
	menu nil {
	item "Open in Apollo":
		if ShortcutInput contains "reddit.com" {
			getURLs(ShortcutInput)
			const UpdatedText = replaceText(".+?(?=reddit\.com)", "apollo://", false, true)
			openURL(UpdatedText)
		} else {
			alert("That’s not a reddit link!", "D’oh")
		}
	item "View deleted comments":
		@Urlfull = ShortcutInput
		getURLDetail(@Urlfull, "Path")
		@Path
		getURLDetail(@Urlfull, "Host")
		replaceText("reddit", "removeddit", false, false)
		@Host
		const Text = "{@Host}{@Path}"
		openURL(Text)
	}
}
stop()
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 hunter9888x

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung