Skip to content

Instantly share code, notes, and snippets.

@Superbil
Last active October 21, 2024 06:32
Show Gist options
  • Save Superbil/3b7dd131ff2c7aa5831e65a893295fcb to your computer and use it in GitHub Desktop.
Save Superbil/3b7dd131ff2c7aa5831e65a893295fcb to your computer and use it in GitHub Desktop.
This was openIn script
(function () {
let url = ctx.url
// remove tracking query
let remove_keys = ["utm", "uta_", "fb"]
let keys = url.searchParams.keys()
keys.forEach(function (key) {
remove_keys.forEach(function (check_key) {
if (key.startsWith(check_key)) {
url.searchParams.delete(key)
// console.log("remove ", key)
}
})
})
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment