Last active
May 4, 2024 20:58
-
-
Save gogromat/5a989c1f140726bbb85393e4cb4a08a8 to your computer and use it in GitHub Desktop.
disable-suroi-io-console
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
document.addEventListener("keydown", (e) => { | |
const code = Number.parseInt(e.keyCode, 10); | |
// console.log(`keyCode: ${code}`); | |
if (code === 192) { | |
e.preventDefault(); | |
e.stopPropagation(); | |
// console.log(`stopped ~`); | |
return false; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment