ShareShortcuts

Scrub URL

\ A simple utility for cleaning unnecessary information (?

blue
Создать форк «Scrub URL»

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

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

## A simple utility for cleaning unnecessary information (? and what‘s after it) from a URL.

## About

Unfortunately, this is *not* the Ultimate Link Cleaner utility I have aspired to make for as long as I‘ve curated web content in various forms, but it will at least reliably perform one function: removing “tracking“ metadata (? and the stuff after it) by disassembling a given URL and reassembling *only* the host and the path. That‘s it. It will *not* function if redirection is involved.

### Functions

**As configured by default... **

(Subject to your preference!)

1. Retrieves current clipboard

2. Finds the host (host.com) in the URL

3. Finds the path (/path) in the URL

4. Combines the raw text of the host and the path to (hopefully) form a link without a scheme (host.com/path)

5. Recognizes this raw text as a real URL, adding a scheme (http://host.com/path.)

6. Copies the result to the clipboard

My line is open any time if you have suggestions/feedback/feel like harassing someone for an unrelated reason:

## Contact

* [Email](mailto:davidblue@extratone.com)

* [Twitter](https://twitter.com/NeoYokel)

* [Mastodon](https://mastodon.social/@DavidBlue)

* [Discord](https://discord.gg/0b9KQUKP858b0iZF)

* [*Everywhere*](https://www.notion.so/rotund/9fdc8e9610b34b8f991ebc148b760055?v=c170b58650c04fbdb7adc551a73d16a7)...

Что нового

Версия 1.0

First release

История версий
1.0 25 мар 2021 г.

First release

Что делает

Действий: 9
  1. Comment
    ## A simple utility for cleaning unnecessary information (? and what‘s after it) from a URL. ## About Unfortunately, this is *not* the Ultimate Link Cleaner utility I have aspired to make for as long as I‘ve curated web content in various forms, but…
  2. Get Clipboard
  3. Get Component of URL
  4. Get Component of URL
  5. Get Text from Input
  6. Get Text from Input
  7. Text
  8. URL
    …
  9. Copy to Clipboard

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

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

#include 'actions/web'
#include 'actions/sharing'
#define color blue
#define glyph personSpeech

/*
## A simple utility for cleaning unnecessary information (? and what‘s after it) from a URL.

## About

Unfortunately, this is *not* the Ultimate Link Cleaner utility I have aspired to make for as long as I‘ve curated web content in various forms, but it will at least reliably perform one function: removing “tracking“ metadata (? and the stuff after it) by disassembling a given URL and reassembling *only* the host and the path. That‘s it. It will *not* function if redirection is involved.

### Functions

**As configured by default... **(Subject to your preference!)

1. Retrieves current clipboard
2. Finds the host (host.com) in the URL
3. Finds the path (/path) in the URL
4. Combines the raw text of the host and the path to (hopefully) form a link without a scheme (host.com/path)
5. Recognizes this raw text as a real URL, adding a scheme (http://host.com/path.)
6. Copies the result to the clipboard

My line is open any time if you have suggestions/feedback/feel like harassing someone for an unrelated reason:

## Contact

* [Email](mailto:[email protected]) 
* [Twitter](https://twitter.com/NeoYokel)
* [Mastodon](https://mastodon.social/@DavidBlue)
* [Discord](https://discord.gg/0b9KQUKP858b0iZF)
* [*Everywhere*](https://www.notion.so/rotund/9fdc8e9610b34b8f991ebc148b760055?v=c170b58650c04fbdb7adc551a73d16a7)...
*/
getClipboard()
const ComponentOfURL = getURLDetail(, "Host")
const ComponentOfURL1 = getURLDetail(, "Path")
getText(ComponentOfURL)
getText(ComponentOfURL1)
const URL = url()
setClipboard(URL)
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

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

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

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

Реклама

Ещё от blue

См. все

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

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