Created
January 24, 2010 04:46
-
-
Save jawspeak/285010 to your computer and use it in GitHub Desktop.
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
| // ==UserScript== | |
| // @name escape_to_close_window | |
| // @namespace Users | |
| // @include http://www.quickmandarin.com/chinesepinyintable/ | |
| // ==/UserScript== | |
| // Any key you press will close the modal for pronounciation | |
| function closeModal() { | |
| unsafeWindow.hideShutter() | |
| } | |
| document.addEventListener('keyup', closeModal, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment