Link cleaning extensions for PopClip

I’ve just added a couple of extensions to the PopClip collection. They lengthen short urls and clean query strings out. One (LinkCleaner) is for replacing text in an editor, and the other (CopyCleanLinks) is for copying to the clipboard.

Both of them have the same set of modifier keys:

  • Holding down Option will strip all query strings. By default it will only strip Google Analytics strings (UTM).
  • Holding down Command will strip all text except for URLs, returning the cleaned versions of any urls in the text as a newline-separated list
  • Holding down both will do — surprise — both.

The scripts use LongURL to lengthen any short urls found, and then a basic regex to find Google query strings and other “?x=y” type of query strings.

Download the bunch and install what you like! The source is up on GitHub.

Brett’s PopClip Extensions v1.25

A few PopClip extensions for Markdown writing and other useful tools

Published 11/30/14.

Updated 01/07/20. Changelog

DonateMore info…

Brett Terpstra

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff on Twitter, GitHub, and Mastodon. Keep up with this blog by subscribing in your favorite news reader.

This content is supported by readers like you.

Join the conversation