---
title: Link cleaning extensions for PopClip
date: 2014-03-06 12:00
slug: link-cleaning-extensions-for-popclip
categories:
- Code
tags:
- popclip
---

![](https://brettterpstra.com/uploads/2013/03/PopClipIcon.png)

I've just added a couple of extensions to the [PopClip collection](http://brettterpstra.com/projects/bretts-popclip-extensions/). 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](http://longurl.org) 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](https://github.com/ttscoff/popclipextensions).

**[Download Brett's PopClip Extensions v2.0.7](https://brettterpstra.com/downloads/BrettsPopclipExtensions2.0.7.zip)**

A few PopClip extensions for Markdown writing and other useful tools

[More info](https://brettterpstra.com/projects/bretts-popclip-extensions/)

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
