Created
October 28, 2021 13:30
-
-
Save jpriebe/4a8fd2ce6c54db702a505b097e656262 to your computer and use it in GitHub Desktop.
wiki.js script injection
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
<script> | |
window.onload = function() { | |
for (var links = document.links, i = 0, a; a = links[i]; i++) { | |
if (a.host !== location.host) { | |
a.target = '_blank'; | |
} | |
} | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment