Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support for utm_page.

  • Loading branch information...
commit 23a5a5e029245bd6656f763618f11885a8e9aa8d 1 parent 2e5cb68
@irae authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 remove_utm_source_url.user.js
View
7 remove_utm_source_url.user.js
@@ -1,12 +1,13 @@
// ==UserScript==
-// @name Remove utm_source from URLs
+// @name Remove utm_source, utm_pages, etc. from URLs
// @namespace pro.irae.userscripts
-// @description Remove seamlessly the long URL from feedburner, making it easy to share and to read tose urls
+// @description Remove seamlessly the long URL from analytics, feedburner, etc. making it easy to share and to read tose urls
// @include *utm_source=*
+// @include *utm_page=*
// ==/UserScript==
(function() {
- var cleanURL = (document.location.href+'').replace(/(\?|&)?utm_source.*/,'');
+ var cleanURL = (document.location.href+'').replace(/(\?|&)?utm_.*/,'');
if(history && 'replaceState' in history) {
history.replaceState({},'same',cleanURL);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.