Last active
October 21, 2024 06:32
-
-
Save Superbil/3b7dd131ff2c7aa5831e65a893295fcb to your computer and use it in GitHub Desktop.
This was openIn script
This file contains 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
(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