Skip to content

Instantly share code, notes, and snippets.

@sathishshan
Last active January 1, 2021 06:29
Show Gist options
  • Save sathishshan/b8d0ec862591a59738015f4f10435ae8 to your computer and use it in GitHub Desktop.
Save sathishshan/b8d0ec862591a59738015f4f10435ae8 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Remove-UTM-from-URL
// @namespace parameter_blocker
// @description Removes UTM from url (by reloading)
// @version 1.0
// @include https://www.naukri.com/job-listings*
// @run-at document-start
// ==/UserScript==
var loc = window.top.location.toString();
if(loc.indexOf('utm_')!==-1){
window.top.location.replace(loc.replace(/&utm_([^&])+/g,''));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment