ShareShortcuts
Создать форк «View URL»

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

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

# View Link

Sometimes I want to view the URL of a link whether it be from curiosity, suspicion, to save for later, or any other reason you would ever need to see it for. Often, I can force-touch or long-tap on a link pointing somewhere and a share sheet or menu will appear showing me the URL with a couple actions. Other times, I get nothing. I end up force-touching/long-tapping, copying (if given the option), and then pasting whatever it is into the most accessible text field I can get. Too much work.

With this Shortcut, force-touch or long-tap on a link and share it to this. A menu will appear showing the destination URL and giving you the options of opening the link in Safari or copying it to the clipboard. If the URL had been shortened, this Shortcut will expand it to us original form.

Что нового

Версия 1.0

First release

История версий
1.0 7 ноя 2018 г.

First release

Что делает

Действий: 15
  1. Comment
    Sometimes I'll come across a link in an app and I want to know where I'm going to end up if I click on it. I created this to make it easier for me. Enjoy! (Or don't enjoy. I'm not your mom.) 🤷🏻‍♂️
  2. Dictionary
  3. URL
    …
  4. Expand URL
  5. Choose from Menu
    …
  6. Choose from Menu
    Copy
  7. Copy to Clipboard
  8. Choose from Menu
    Open in Alook
  9. Get Text from Input
  10. Replace Text
  11. URL
    …
  12. Open URLs
  13. Choose from Menu
    Open in Safari
  14. Open URLs
  15. Stop This Shortcut

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

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

#include 'actions/web'
#define color darkblue
#define glyph chainlink

// Sometimes I'll come across a link in an app and I want to know where I'm going to end up if I click on it. I created this to make it easier for me. Enjoy! (Or don't enjoy. I'm not your mom.) 🤷🏻‍♂️

url(ShortcutInput)
expandURL("")

menu  {
item "Copy":
	setClipboard(nil)
item "Open in Alook":
	getText(nil)
	replaceText("^(http:\/\/|https:\/\/)?", "alook://", "", false, true)
	url()
	openURL("")
item "Open in Safari":
	openURL("")
}
stop()
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

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

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

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

Реклама

Ещё от canibeanartist

См. все

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

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