URL Cleanser is a Safari extension that removes many of the common tracking variables that web publishers append to URLs. For example, you've probably seen stuff like
utm_campaign tacked onto the end of URLs, especially from RSS and Twitter feeds--URL Cleanser will get rid of those. No more manually cleaning up URLs before you paste them into an email or Twitter message.
I realise that sites have legitimate uses for these variables, but they really are obnoxious. The URL is part of the user experience, and while sticking
?utm_source=rss&utm_medium=rss&utm_campaign=rss on the end of the URL isn't quite as awful as a Flash ad that animates over content, it's not fundamentally different. Both demonstrate a certain level of disrespect for your users, and both make it blatantly clear that you see your users as little more than sources of revenue.
Besides, this extension still allows the bullshit-filled request to go through--it simply issues a redirect as soon as the HTML document has been loaded and parsed by Safari. Many sites do this server-side--I'm just cleaning up after the ones that don't.
Note: This hasn't been tested too extensively, and definitely has the capability to break some sites rather spectacularly. Use at your own risk.
Go to the downloads page and grab the most recent version (it will be called
url_cleanser_*.safariextz). After you've installed it, Safari will automatically download updates or notify you of new releases, depending on how you've set it up. As of 10/06/22, you'll need to manually enable extensions to install it (this will likely no longer be necessary in later releases).
Examples (before and after)
Note: I don't actually read TechCrunch, I just assumed they would be the best example of this bullshit, which they were.
If you've found a site that has tracking variables that this extension doesn't catch, or you've found that this extension breaks a page, open up an issue, send me an email, or add/fix it yourself.
- SAFARI: Redrew icon at 100x100 for Safari Extension Gallery submission.
- SAFARI: Fixed typo in server-side updates file that was preventing Safari from downloading new updates. No need to manually install the new version--it should kick in on its own.
- SAFARI: Bumped version to test auto-updating.
- CORE: First release.
- SAFARI: First version.