Drale

Firefox Ctrl+B toggle Bookmarks Toolbar like Chrome

Pressing Ctrl+B in Chrome opens and closes the Bookmarks Toolbar. By default, Firefox Ctrl+B toggles the Bookmarks Sidebar. Here is how to apply the same shortcut key to Firefox as in Chrome. The Bookmarks Sidebar will still be accessible with Ctrl+I.

Install keyconfig.xpi posted in the mozillaZine forums. It is not an official hosted plugin. There is also a keyconfig wiki.



After the install and Firefox restarts…

1. Tools > Keyconfig (Ctrl+Shift+F12)

2. Click once to highlight Boomarks Ctrl+B


3. hit Disable

4. Click Add a new key button or double click on Bookmarks

5. Change the Name to Bookmarks Toolbar and paste this code:

goToggleToolbar('PersonalToolbar','');

Hit OK

6. With Bookmarks Toolbar highlighted click in the box next to Apply and then press Ctrl+B. Hit Apply. Then Close. Restart Firefox

Make sure that the Bookmarks Toolbar is checked on in View > Toolbars in the Firefox menu. Hitting Ctrl+B should now toggle the Bookmarks Toolbar instead of the sidebar. The Bookmarks Sidebar can still be toggled with Ctrl+I.

Source: Firefox Support Forums

Another code is also posted in 2010 in the Firefox Support Forums. But the short form above does work in Firefox 3.6.x

var E=document.getElementById('PersonalToolbar');
if(E.collapsed){E.removeAttribute('collapsed')}
else{E.setAttribute('collapsed',true)}


Categorised as: Software, Tutorials


7 Comments

  1. Mauvus says:

    Got it working in Firefox 4 with this code:

    var b=document.getElementById(‘PersonalToolbar’);
    b.collapsed=!b.collapsed;

  2. SG says:

    the 3.6.x code works in FF5, great ext.

  3. r says:

    no such luck for ff4.

  4. RS says:

    I’ve created a small script for autohotkey, that acts as a macro to do this since I haven’t found any working script to use with keyconfig.xpi

    If anyone is interested download AutoHotKey, create new script and paste:

    !a::
    Send !v{Right}{Down}{Down}{Enter}
    return

    This will toggle the bookmarks toolbar on/off with Alt+A key command … change first line of script if you want a different keyboard shortcut.

  5. Gabriel says:

    The 2010 code above works as far as Aurora 20.

  6. Margene says:

    It’s hard to find your articles in google.

    I found it on 13 spot, you should build quality backlinks , it will help
    you to increase traffic. I know how to help you, just
    type in google – k2 seo tips

  7. Efrain says:

    I see a lot of interesting content on your page. You have to spend a lot of
    time writing, i know how to save you a lot of work,
    there is a tool that creates unique, SEO friendly posts in couple of seconds, just type in google – laranita’s free content source

Leave a Reply

Your email address will not be published.