Skip to content

Instantly share code, notes, and snippets.

@jaredhirsch
Created February 10, 2016 00:06
Show Gist options
  • Save jaredhirsch/29662292f8b7e8903eb0 to your computer and use it in GitHub Desktop.
Save jaredhirsch/29662292f8b7e8903eb0 to your computer and use it in GitHub Desktop.
another stupid mozilla-specific one liner
// if you want to pin the popup open, from the browser toolbox:
gURLBar.popup.addEventListener('popuphiding', (e) => { e.preventDefault(); })
// to unpin it, close the window.
// if you need to get fancier, set a global bit of state and check it before
// preventing default, or, use a named function and call removeEventListener()
// when you're done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment