nickdaze / url_cleanser

Safari extension that removes many of the common tracking variables that web publishers append to URLs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Cleanser

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_source and 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.

Installation

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.

http://techcrunch.com/2010/06/22/facebook-revenues/**?utm\_source=feedburner&utm\_medium=feed&utm\_campaign=Feed%3A+Techcrunch+%28TechCrunch%29**
http://techcrunch.com/2010/06/22/facebook-revenues/

http://www.nytimes.com/2010/06/23/world/asia/23mcchrystal.html**?partner=rss&emc=rss**
http://www.nytimes.com/2010/06/23/world/asia/23mcchrystal.html

http://arstechnica.com/apple/reviews/2010/06/adobe-lightroom-3-review.ars**?utm\_source=rss&utm\_medium=rss&utm\_campaign=rss**
http://arstechnica.com/apple/reviews/2010/06/adobe-lightroom-3-review.ars

http://37signals.com/svn/posts/2416-clever-design-a-clock-with-aa-batteries**?utm\_source=twitterfeed&utm\_medium=twitter**
http://37signals.com/svn/posts/2416-clever-design-a-clock-with-aa-batteries

http://www.thestar.com/news/gta/article/826739--shots-fired-near-g20-security-zone**?bn=1**
http://www.thestar.com/news/gta/article/826739--shots-fired-near-g20-security-zone

Contribute

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.

Version History

0.1.3 (10/06/23)

  • SAFARI: Redrew icon at 100x100 for Safari Extension Gallery submission.

0.1.2 (10/06/23)

  • 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.

0.1.1 (10/06/22)

  • SAFARI: Bumped version to test auto-updating.

0.1.0 (10/06/22)

  • CORE: First release.
  • SAFARI: First version.

About

Safari extension that removes many of the common tracking variables that web publishers append to URLs.

License:MIT License