Created
May 23, 2015 04:10
-
-
Save jmn/eed2e25e896f6be5a7ae to your computer and use it in GitHub Desktop.
Toggle the Firefox bookmarks bar with a keysnail binding
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
key.setGlobalKey([['C-M-b'], ['C-B']], function (ev) { | |
var win = Services.wm.getMostRecentWindow(null); | |
win.CustomizableUI.setToolbarVisibility('PersonalToolbar', document.getElementById('PersonalToolbar').getAttribute("collapsed") == "true"); | |
}, 'Toggle bookmarks bar', true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment