Last active
February 8, 2021 07:26
-
-
Save ynishi2014/761786f49f3ec989950493e3ec85241f 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
/** | |
* Firefoxのクイック検索を無効化 | |
* @author yoichiro | |
*/ | |
let isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; | |
if (isFirefox) { | |
window.addEventListener("keydown", function(e){ | |
if(e.key == "'" || e.key == '/'){ | |
e.preventDefault(); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment