Skip to content

Instantly share code, notes, and snippets.

@zargony
Created March 28, 2024 10:46
Show Gist options
  • Save zargony/b4c473ae6ae52cc1bb1df40996116ee5 to your computer and use it in GitHub Desktop.
Save zargony/b4c473ae6ae52cc1bb1df40996116ee5 to your computer and use it in GitHub Desktop.
Hide Firefox bookmark toolbar folder icons
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* hide icons for bookmark folders in toolbar, but not in dropdown menus */
#personal-bookmarks toolbarbutton.bookmark-item {
margin-left: 15px !important;
}
#personal-bookmarks toolbarbutton.bookmark-item[type="menu"] .toolbarbutton-icon {
display: none !important;
}
@RichardTozak
Copy link

Hi, the folder icon space didn't close up for me, which would make it pointless to me. Cheers, r

@zargony
Copy link
Author

zargony commented May 15, 2025

Hi. It removes the icon and leaves no space, but the margin-left rule above however introduces a new spacing. I personally liked that because I don't have many entries in my bookmark bar. You may want to reduce the 15px or remove it at all to have no extra spacing.

@RichardTozak
Copy link

Hey zargony, well, that explains that. Thanks. I can now have 10 folders, 10 bookmarks, which I now rarely use, and--the most awesome thing for last--the zoom control that I had no idea would go on there (which won't fit on the address bar bc it's filled with important add-on icons). I only thought to try it after an errant add-on removed the toolbar bookmark item control off the toolbar, and I spent 2 weeks going to the pain of using the bookmarks in the side panel. Anyway, thanks again, I think others will find that info helpful, too. Cheers, r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment