ShareShortcuts
Создать форк «Link Shortener (maybe)»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы justanormalguy получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
39K
Сохранено
0
Действия
57
Категория
API
Версия
1.0
Язык
EN

An api warper for r.tins.ml/api

(fact : this is my website too )


Uses

I just give an example: https://youtube.com/watch?v=dQw4w9WgXcQ to https://r.tins.ml/GRgeWw

How to use 🤔

1. Get a link (yeah,sure)

  1. It has 2 options to import link:

- Click share and import it to this shortcuts

- Click directly to shortcut and its will copy your clipboard( if there no links you can enter its manually)

  1. Wait and you will get a link (:

Supported Language

🌐 English 🇺🇸🇬🇧,Vietnamese 🇻🇳

Sorry for my bad english ;-;

Original shortcuts on RoutineHub: https://routinehub.co/shortcut/11781/

I’ll make a version for shereshortcuts.com soonnnnn…

Что нового

Версия 1.0

First release

История версий
1.0 12 авг 2022 г.

First release

Что делает

Действий: 57
  1. Comment
    Được làm bởi @justanormalguy.-. Made by @justanormalguy.-.
  2. Dictionary
  3. Set Variable
    udinfo
  4. Get URLs from Input
  5. Set Variable
    input
  6. Dictionary
  7. Text
  8. Get Dictionary Value
  9. Get Dictionary from Input
  10. Set Variable
    Langpack
  11. Get IP Address
  12. Count
  13. If
  14. Show Alert
  15. Stop This Shortcut
  16. URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  17. Get Contents of URL
    …
  18. Get Dictionary Value
  19. Set Variable
    V
  20. Get Dictionary Value
  21. If
  22. Show Alert
    ‼️…:…‼️
  23. Replace Text
  24. Open URLs
  25. Stop This Shortcut
  26. If
  27. Ask for Input
    …
  28. Set Variable
    input
  29. If
  30. Choose from Menu
    …
  31. Choose from Menu
    Langpack (nl)
  32. Ask for Input
    Vui lòng nhập url để rút gọn
  33. Set Variable
    input
  34. Choose from Menu
    Langpack (out)
  35. Stop This Shortcut
  36. URL
    https://r.tins.ml/api/new?url=…
  37. Get Contents of URL
    …
  38. Get Dictionary Value
  39. Set Variable
    link
  40. If
  41. Get Dictionary Value
  42. Set Variable
    status
  43. Show Notification
    … : …
  44. If
  45. Choose from Menu
    … : …
  46. Choose from Menu
    Langpack (save)
  47. Copy to Clipboard
  48. Show Notification
    …
  49. Choose from Menu
    …
  50. Choose from Menu
    Langpack (conti)
  51. Run Shortcut
    Shortlink
  52. Choose from Menu
    Langpack (out)
  53. Stop This Shortcut
  54. Choose from Menu
    Langpack (conti)
  55. Run Shortcut
    Shortlink
  56. Choose from Menu
    Langpack (out)
  57. Stop This Shortcut

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/web'
#define color taupe
#define glyph paperAirplane

/*
Được làm bởi @justanormalguy.-.
Made by @justanormalguy.-.
*/
@udinfo = {
	"author": "@justanormalguy.-.",
	"id": "11781",
	"version": "0.0.4"
}
getURLs(ShortcutInput)
@input
const Tin = {
	"en": "{\"Qurl\": \"Please type url to shorten!\", \"Nohost\":\"Can’t short link by shorter.tins.ml\", \"nl\":\"Type manually\",\"out\": \"Exit\",\"sverror\":\"Something was wrong,content\",\"save\":\"Save to clipboard\",\"conti\":\"Short more\",\"suscess\":\"Shortened the link\",\"saved\":\"Saved to clipboard!\",\"nexttodo\":\"Choose next what to do!\",\"udn\":\"Update now?\",\"ud\":\"There’s a new version\",\"rn\":\"Release notes\",\"needwifi\":\"This shortcuts need connected to wifi to works\"}",
	"vi": "{\"Qurl\": \"Vui lòng nhập url để rút gọn!\", \"Nohost\":\"Không thể rút gọn link của trang shorter.tins.ml\", \"nl\":\"Nhập lại\",\"out\": \"Thoát\",\"sverror\":\"Có lỗi gì đó đã xảy ra,chi tiết\",\"save\":\"Lưu vào bảng nhớ tạm\",\"conti\":\"Tiếp tục rút gọn\",\"suscess\":\"Đã rút gọn link thành công\",\"saved\":\"Đã thêm vào bảng nhớ tạm!\",\"nexttodo\":\"Vui lòng chọn tác vụ tiếp theo\",\"udn\":\"Cập nhật ngay?\",\"ud\":\"Đã có phiên bản mới\",\"rn\":\"Thông tin cập nhật\",\"needwifi\":\"Shortcuts cần wifi để hoạt động!\"}"
}
const GiTrTin = getValue(Tin)
getDictionary(GiTrTin)
@Langpack
const aChIPHinTi = getExternalIP()
const m = count(aChIPHinTi, "Items")

if m == 0 {
	confirm(@Langpack['needwifi'])
	stop()
}
url("https://routinehub.co/api/v1/shortcuts/{@udinfo['id']}/versions/latest")
const NiDungCaURL = downloadURL()
@V = NiDungCaURL['Version']

if @V !=  {
	alert("{@Langpack['rn']} : {NiDungCaURL['Notes']}                   {@Langpack['udn']}?", "‼️{@Langpack['ud']}:{@V}‼️")
	const VnBncCpNht = replaceText("https://www.icloud.com/", "shortcuts://", NiDungCaURL['URL'])
	openURL(VnBncCpNht)
	stop()
}

if !@input {
	prompt(@Langpack['Qurl'], "URL")
	@input
}

if @input contains "r.tins.ml" {
	menu @Langpack['Nohost'] {
	item @Langpack['nl']:
		prompt("Vui lòng nhập url để rút gọn", "URL")
		@input
	item @Langpack['out']:
		stop()
	}
}
url("https://r.tins.ml/api/new?url={@input}")
const NiDungCaURL1 = fileRequest(, "GET")
const GiTrTin1 = getValue(NiDungCaURL1, "short_url")
@link = GiTrTin1

if !@link {
	@status = NiDungCaURL1['message']
	showNotification("{@Langpack['sverror']} : {@status}", GiTrTin1)
} else {
	menu "{@Langpack['suscess']} : {@link} " {
	item @Langpack['save']:
		setClipboard(@link, false)
		showNotification(@Langpack['saved'], @link)
		menu @Langpack['nexttodo'] {
		item @Langpack['conti']:
			runSelf(@link)
		item @Langpack['out']:
			stop()
		}
	item @Langpack['conti']:
		runSelf(@link)
	item @Langpack['out']:
		stop()
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Вам также может понравиться

См. все
Реклама