Login About Gallery
URL Cleaner
COMMENT
‎Clean up URLs by removing tracking parameters from them. The shortcut supports a built-in list of widely known tracking parameters (courtesy of Robb Knight), and can be easily expanded to remove more tracking parameters from URLs.
COMMENT
‎Match tracking parameters
TEXT
‎_bta_c|_bta_tid|_ga|_hsenc|_hsmi|_ke|_openstat|dm_i|ef_id|epik|fbclid|gclid|gclsrc|gdffi|gdfms|gdftrk|hsa_|igshid|matomo_|mc_|mkwid|msclkid|mtm_|ns_|oly_anon_id|oly_enc_id|otc|pcrid|piwik_|pk_|rb_clickid|redirect_log_mongo_id|redirect_mongo_id|ref|s_kwcid|sb_referer_host|soc_src|soc_trk|spm|sr_|srcid|stm_|trk_|utm_|vero_|resize|tpcc
VARIABLES
‎Set variable ‎Pattern ‎to ‎Pattern
URL
‎Shortcut Input
VARIABLES
‎Set variable ‎Input URL ‎to ‎URL
SCRIPTING
‎If ‎Input URL ‎does not have any value
COMMENT
‎There is no URL from the share sheet
COMMENT
‎First, check if it is a Mac
SCRIPTING
‎If ‎WFInput? ‎is ‎Mac
MISSING
‎runapplescript Under Construction
COMMENT
‎Check if Safari is running
TEXT
‎AppleScript Result
SCRIPTING
‎If ‎Text ‎is ‎Yes
COMMENT
‎Get the URL from the current Safari tab
MISSING
‎safari.geturl Under Construction
VARIABLES
‎Set variable ‎Input URL ‎to ‎URL
SCRIPTING
‎Otherwise
COMMENT
‎Safari is not running
SCRIPTING
‎End If
SCRIPTING
‎Otherwise
COMMENT
‎It is not a Mac; get the URL from the clipboard
WEB
‎Get URLs from ‎Clipboard
VARIABLES
‎Set variable ‎Input URL ‎to ‎URLs
SCRIPTING
‎End If
SCRIPTING
‎End If
COMMENT
‎Try one final attempt to see if the Input URL is empty or not; if still empty, just prompt the user to enter one manually.
SCRIPTING
‎If ‎Input URL ‎does not have any value
SCRIPTING
‎Ask ‎What’s the URL to clean up?
Input Type
‎URL
Default Answer
‎Text
VARIABLES
‎Set variable ‎Input URL ‎to ‎Provided Input
SCRIPTING
‎End If
DOCUMENTS
‎Replace ‎(\?|&)( ‎Pattern ‎)\=(.+) ‎with ‎World ‎in ‎Input URL
Case Sensitive
Regular Expression
WEB
‎Get URLs from ‎Updated Text
SHARING
‎Copy ‎URLs ‎to clipboard
Local Only
Expire At
‎Today at 3 pm
TEXT
‎Cleaned up and copied: ‎URLs
NOTIFICATIONS
‎Show notification ‎Text
‎Options Under Construction
COMMENT
‎Set the output of the shortcut
WEB
‎Get URLs from ‎URLs

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 3 years ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

1