Created
February 2, 2024 19:06
-
-
Save memetican/37205286d76c8c92b19ec827b2e6880f to your computer and use it in GitHub Desktop.
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
<script type="text/javascript"> | |
document.addEventListener("DOMContentLoaded", function() { | |
var params = window.location.search; | |
var links = document.querySelectorAll('a[href^="/"]'); | |
links.forEach(function(link) { | |
link.href = link.href + params; | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment