Toggle Firefox Bookmarks Toolbar; KeyConfig

Install KeyConfig: http://mozilla.dorando.at/keyconfig.xpi

1. Go to Tools > KeyConfig.

2. [Add a new key]

3. Name: Toggle Firefox Bookmarks Toolbar

4. Code:

// Toggle Firefox Bookmarks Toolbar
var b = document.getElementById('PersonalToolbar');
b.collapsed = !b.collapsed;

5. Click OK. Type a shortcut (CTRL + B) into the text box. Apply. Close. Open new window for changes.

This post is available on GitHub.
Posted .

6 comments

  1. anonymous

    Hi -- with Firefox 4, on initially launching the program, this only makes a blank toolbar appear and disappear at first.

    You have to manually make the toolbar appear through Firefox's own menus, and then the code above works. But you have to do this every time you close and re-open firefox.

    Could you post a way to fix this?

  2. anonymous

    With Firefox 4 the above code still works. The only difference I've found is that the bookmarks toolbar is shown after a restart even if you've used the CTRL+B hotkey to hide it.

  3. anonymous
    solution for blank toolbar var bar = document.getElementById("PersonalToolbar"); setToolbarVisibility(bar, bar.collapsed); source: http://forums.mozillazine.org/viewtopic.php?f=48&t=72994&start=1860
  4. anonymous

    Thanks, I was getting the blank toolbar, then I found the solution for that problem in the comments and it is fixed. Thanks again!

  5. anonymous

    Nice. Works in Iceweasel today 2014-1-7.

  6. anonymous

    2017 and still works like a charm.

Leave a Reply