Created
February 10, 2016 00:06
-
-
Save jaredhirsch/29662292f8b7e8903eb0 to your computer and use it in GitHub Desktop.
another stupid mozilla-specific one liner
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
// 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