Last active
December 31, 2020 06:40
-
-
Save sathishshan/293a82882a66dbba12b3521e3a2ac591 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ==UserScript== | |
// @name Remove_Params | |
// @namespace parameter_blocker | |
// @description Remove any parameter from the url | |
// @version 1.0 | |
// @include * | |
// @run-at document-start | |
// ==/UserScript== | |
var loc = window.top.location.toString(); | |
if(loc.indexOf('?fbclid')!==-1){ | |
window.top.location.replace(loc.replace(/fbclid([^&#])+/g,'')); | |
} else if (loc.indexOf('&fbclid')!==-1) { | |
window.top.location.replace(loc.replace(/&fbclid([^&#])+/g,'')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment