Bookmarklet to Clean Cruft From URL
Bookmarking articles with long, ugly URLs filled with analytics cruft is a nuisance. I also find myself bookmarking the same article multiple times without realizing it. My bookmarking manager of choice (Linkman) will tell me if a link is already saved, but if the links are different, Linkman doesn’t know it’s the same article.
And sharing long links is annoying too. Instead of turning to a URL shortener, give this method a try.
I’ve created a URL cleaning bookmarklet that removes everything but the domain and path without having to reload the page, leaving a shorter, cleaner link.
Note: It works best on articles, and it can break some links. If the cleaned link no longer works, hit F12 to see the original URL printed in the Console.
To install the bookmarklet, drag the link below to your bookmarks toolbar:
To use it, click the bookmarklet on a site with a long URL and the URL will be cleaned up right before your very eyes.
Here’s an example.
Exhibit A: The original link
Exhibit B: The clean link
http://nymag.com/scienceofus/2015/07/how-to-recover-from-an-all-nighter.html
Both links lead to the exact same article.
Which would you rather use?
Thanks for the hint and nice clean cruft from URL solution :)
Check out the extension “Redirector” for Firefox or Chrome. It lets you create automatic URL manipulation rules by yourself.