ShareShortcuts
Fork “URL’s”

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å hunter9888x 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
64K
Gemt
2
Handlinger
63
Kategori
Værktøjer
Version
1.0
Sprog
EN

Handy URL shortcuts

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

Nyheder

Version 1.0

First release

Versionshistorik
1.0 8. dec. 2019

First release

Hvad den gør

63 handlinger
  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

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'
#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()
Å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 hunter9888x

Se alle

Du vil måske også kunne lide

Se alle
Annonce