Skip to content

Instantly share code, notes, and snippets.

@jmn
Created May 23, 2015 04:10
Show Gist options
  • Save jmn/eed2e25e896f6be5a7ae to your computer and use it in GitHub Desktop.
Save jmn/eed2e25e896f6be5a7ae to your computer and use it in GitHub Desktop.
Toggle the Firefox bookmarks bar with a keysnail binding
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