Skip to content

Instantly share code, notes, and snippets.

@jawspeak
Created January 24, 2010 04:46
Show Gist options
  • Select an option

  • Save jawspeak/285010 to your computer and use it in GitHub Desktop.

Select an option

Save jawspeak/285010 to your computer and use it in GitHub Desktop.
// ==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