Last active
October 27, 2023 03:26
-
-
Save henryhchchc/95b76dcf1c7a5f1b16c93a2829fc09c7 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
// ==UserScript== | |
// @name Disable ESC | |
// @description Prevent ESC from exiting fullscreen | |
// @updateURL hhttps://gist.githubusercontent.com/henryhchchc/95b76dcf1c7a5f1b16c93a2829fc09c7/raw/disable_esc.js | |
// @match *://*/* | |
// ==/UserScript== | |
document.onkeydown = function (evt) { | |
if (evt.keyCode == 27) evt.preventDefault(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment