Ctrl+B
. I hunted around for this ability in Firefox but it took a little finagling -- here's the how-to:- Install Keyconfig.
- Open Keyconfig's configuration dialog via "Tools | Keyconfig..." or
Ctrl+Shift+F12
. - If you want to use
Ctrl+B
to toggle the Bookmarks Toolbar, first disable the default association to "Bookmarks" by selecting it and clicking the "Disable" button. - Click the "Add a new key" button and fill out the form using the following:
- Name:
Toggle Bookmarks Toolbar
- Code:
var b = document.getElementById('PersonalToolbar');
b.collapsed = !b.collapsed;
- Name:
- Click "OK."
- Select your new key, select the text field, type your desired shortcut (
Ctrl+B
, for example), and click "Apply."
Another key I've added is a shortcut to toggle the status bar. Here's the code:
var s = document.getElementById('status-bar');Enjoy!
s.hidden = !s.hidden;
Nice! A toolbar button that could toggle the bookmarks bar on/off would be even nicer...
ReplyDeleteThank you!
ReplyDeleteNice, thanks a lot! This should rreally be in there by default.
ReplyDeleteThanks for the little tweak!
ReplyDeleteExcellent shortcut. Thanks!
ReplyDeletewow, pretty nifty and the best part is, it works like a charm, thanks a lot Vic :D
ReplyDeleteAbsolutely great! Thanks so much for sharing your nerdiness!!
ReplyDeleteIf you install the Custom Buttons add-on, you can put the same code in a new button and it will create a button to toggle it!
ReplyDeleteThanks for the great post, i continue to learn from your advice!
ReplyDeleteHi -- with Firefox 4, this now has a bug:
ReplyDeleteOn initially launching the program, this only makes a blank toolbar appear and disappear at first.
Workaround: 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? It would be SO useful!
Thanks!!
Hi - me again - I also notice that with your method, the "bookmarks" drop-down button behaves differently.
ReplyDeleteThis is the "bookmarks" drop-down button in the default toolbar set for Firefox 4.
Normal behavior re: bookmarks toolbar:
- Click this button, select "View Bookmarks Toolbar"
- Toolbar appears, button DISAPPEARS, now located on the bookmarks toolbar.
- Click button, deselect "View Bookmarks Toolbar", toolbar disappears, and button reappears on the ordinary toolbar, where it was before.
Behavior with the CTRL+B code above:
- Click bookmarks drop-down, select "view bookmarks toolbar", bookmarks drop-down goes away from main bar.
- CTRL+B, toolbar goes away, but bookmarks drop-down button doesn't reappear.
This is in addition to the problem noted yesterday.
I figure the problems are actually related, so thought this tidbit might help you figure it out.
Thank you again, and hope this helps! Even with the bugs, I find myself using your code because it's just so useful ... hopefully we can get it to work as it should!
@eblable - Thanks for your effort!
ReplyDeleteI've checked out this issue, and the weird thing is that it works okay for me. I'm running it on Windows XP as well as Mac OS X.
What I have noticed is that there are possible toolbar configurations which the Firefox 4 upgrade path does not seem to handle correctly. My guess is that your experience is a case of this.
With my configuration, I used to have the "new tab" button on the toolbar. That somehow prevented the small new-tab "plus" from being shown to the right of the last tab in Firefox 4. I think I managed to get it back by removing the new tab button from the toolbar while in "Customize..." mode, or maybe by choosing "Restore Default Set."
A couple of things you can try:
* Remove the Bookmarks button and/or drop-down while in "Customize..." mode, then re-add it/them
* "Restore Default Set" while in "Customize..." mode
* Disable your key configuration in key config, restart Firefox, then reassign your hot-key
* Uninstall and reinstall Keyconfig
* Create a new Firefox profile (see here), install Keyconfig and see if it works
All of these amount to "turning it off and on again," but maybe one of them will do the trick. Good luck.
@eblabla I am facing the same problem. I am not sure whether you are gonna see this. But, do tell me the solution for the "blank icons". Thanks a lot!
ReplyDeleteCan you please post the solution here? I am here because of Google. It might benefit others as well. Thanks again. Thanks Vic too!
ReplyDeleteis this application available for firefox 4? if yes how can i install that? Thanks.
ReplyDeleteI was referring to keyconfig..
ReplyDeleteI found it..!! This is cool.. Thanks.
ReplyDeletesolution for blank toolbar
ReplyDeletevar bar = document.getElementById("PersonalToolbar");
setToolbarVisibility(bar, bar.collapsed);
source:http://forums.mozillazine.org/viewtopic.php?f=48&t=72994&start=1860
Just switched back to FF today. Thanks very much!
ReplyDeleteThank you very much, it works also on seamonkey!
ReplyDeletethe name of the address bar is: nav-bar
Thank for your guide. I am using Firefox not very often because of these thing. Chrome UI is much better and comfortable. But few time ago i installed ask.com toolbar (it was mistake) and my Chrome start lagging. I found removal guide http://removalbits.com/how-to-remove-ask-com-and-search-ask-com-from-your-computer-removal-tutorial/ and now all works fine, but i already switch to Firefox in these two weeks.
ReplyDelete