Created
October 27, 2011 12:41
-
-
Save mackuba/1319447 to your computer and use it in GitHub Desktop.
Bookmarklet which deletes that utm_* crap from the URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function() { var s = ""; var args = location.search.substring(1).split('&'); for (var a = 0; a < args.length; a++) { var key = args[a].split('=')[0]; if (!key.match(/^utm_/)) { s += '&' + args[a]; }} if (s) { s = '?' + s.substring(1); } location.href = location.origin + location.pathname + s; })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment