Skip to content

Instantly share code, notes, and snippets.

@LaptopHeaven
Created June 21, 2019 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LaptopHeaven/8aa9b3a100eb212ed06b4db19473035d to your computer and use it in GitHub Desktop.
Save LaptopHeaven/8aa9b3a100eb212ed06b4db19473035d to your computer and use it in GitHub Desktop.
UTM Free: remove utm querystring
javascript:(function(){var t,a,o,c;if(t=location.search.replace(/^\?/,"").split("&"),a=[],t){for(o=t.length;o--;)t[o].match(/^utm_|^fb_action|^fb_source|^action_object_map|^action_type_map|^action_ref_map|^_r|^cmp|^imm_|^mc_|^mqsc|^trk|^midToken|^fromEmail|^ut|^fbclid|^wpmm|^wpisrc|^_hsmi|^_hsenc/)?c=!0:a.push(t[o]);c&&history.pushState("","",location.pathname+(a.length?"?"+a.join("&"):""))}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment