How do I customize the bookmarks menu, such as remove subscribe to this page and and hide or remove the unsorted bookmarks items on the menu bar for book marks?
In older version you could hide the or delete subscribe to this page option in the bookmarks menu bar option and the same for unsorted book makrs option. Also I would like to remove some of the spaces that surround these option in the menu.
I'm talking about the menu bar with the menu item bookmarks.
All of these options in the menu for book marks makes for a lot of unnecessary scrolling to of the bookmarks menu in either direction(up or down). I find it very annoying that there is NO option to either hide these items of to just out and out delete!
The tool bar I'm talking about has this list on it.
File Edit View History Bookmarks Tools Help
Now on this menu bar in the drop down bookmarks menu is where I want to get rid of or hide the above mentioned items which you use to be able to do.
Выбранное решение
If you want to Hide Unsorted Bookmarks from the Bookmarks Menu (however it will still appear in the Bookmarks Library), do the following:
-> Create file userChrome.css in a folder named chrome in your Firefox Profile Folder
-> Close Firefox
-> Now enter (or copy/paste) the following code in the userChrome.css file.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* this line is needed only once */
#appmenu_bookmarksPopup menuseparator[builder="end"], #appmenu_unsortedBookmarks, #bookmarksMenuPopup menuseparator[builder="end"], #menu_unsortedBookmarks, #BMB_bookmarksPopup menuseparator[builder="end"], #BMB_unsortedBookmarks {display:none!important;}
Прочитайте этот ответ в контексте 👍 1
Все ответы (11)
See this post:
Check and tell if its working.
I already tried that. There is no such file on my laptop by that name. There is one called chromeapps though. I running Fedora Linux 15, if that makes a difference and the latest version of Firefox 6.0.2. Fedora has a habit of customizing most every package that they make available for fedora systems. Now on my old laptop which had firefox 5 on it that file does exist but that's no help on my new laptop which does not have a file by that name!
Выбранное решение
If you want to Hide Unsorted Bookmarks from the Bookmarks Menu (however it will still appear in the Bookmarks Library), do the following:
-> Create file userChrome.css in a folder named chrome in your Firefox Profile Folder
-> Close Firefox
-> Now enter (or copy/paste) the following code in the userChrome.css file.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* this line is needed only once */
#appmenu_bookmarksPopup menuseparator[builder="end"], #appmenu_unsortedBookmarks, #bookmarksMenuPopup menuseparator[builder="end"], #menu_unsortedBookmarks, #BMB_bookmarksPopup menuseparator[builder="end"], #BMB_unsortedBookmarks {display:none!important;}
Изменено
Menu Editor 1.2.7
Use this extension to Hide Subscribe to this page.
Check and tell if its working.
Thanks all! I have got it working now.
I started with a copy of the file from my old laptop. I have been able to eliminate all the things I wanted to be gone but I now have three separator bars where the bookmark toolbar and subscribe to this page entries were that I can't get rid of. But I can live with that unless anyone has some ideas how to get rid of those also.
Copy of my userchrome.css file:
menubar > menu { color: #141312 !important; } menubar > menu[_moz-menuactive="true"][open="false"] { color: #141312 !important; } menubar > menu[_moz-menuactive="true"][open="true"] { color: #141312 !important; } /* MenuColors, Added by QtCurve -- do not remove */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* this line is needed only once */ #appmenu_bookmarksPopup menuseparator[builder="end"], #appmenu_unsortedBookmarks, #bookmarksMenuPopup menuseparator[builder="end"], #menu_unsortedBookmarks, #BMB_bookmarksPopup menuseparator[builder="end"], #BMB_unsortedBookmarks {display:none!important;} #subscribeToPageMenuitem, #subscribeToPageMenupopup {display: none !important; } #bookmarksToolbarFolderMenu { display: none !important;} #organizeBookmarksSeparator { display: none !important;}
Изменено
After installing this add on I tried doing it for the book marks menu options and the add on states NOT SUPPORTED YET!
Thanks anyhow. This add on would be a great tool if it had full support to edit all the menu items.
-> click Firefox button -> go to Bookmarks and click Show All Bookmarks
- Bookmarks Library window will open
- in Bookmarks Library window open Bookmarks Menu
- right-click a Separator and click Delete
- close Bookmarks Library window
Check and tell if its working.
-> click Firefox button -> go to Bookmarks and click Show All Bookmarks
Bookmarks Library window will open in Bookmarks Library window open Bookmarks Menu right-click a Separator and click Delete close Bookmarks Library window
Check and tell if its working.
=
Yep that got rid of one of them. I can live with the other 2 since they are at a spot that does not matter or expand the length of the bookmarks menu in any way.
Thanks for the help.
This code will remove everything that is possible from the Bookmarks menu , Bookmarks Menu button, and App menu so leave out what you want to keep.
#menu_bookmarkThisPage, #subscribeToPageMenuitem, #subscribeToPageMenupopup, #menu_bookmarkAllTabs, #bookmarksShowAll, #organizeBookmarksSeparator, #bookmarksToolbarFolderMenu, #bookmarksToolbarFolderMenu+menuseparator, #bookmarksMenuPopup menuseparator[builder="end"], #menu_unsortedBookmarks { display:none!important; }
#BMB_viewBookmarksToolbar, #BMB_viewBookmarksToolbar+menuseparator, #BMB_bookmarksShowAll, #BMB_bookmarksShowAll+menuseparator, #BMB_bookmarkThisPage, #BMB_subscribeToPageMenuitem, #BMB_subscribeToPageMenupopup, #BMB_subscribeToPageMenupopup+menuseparator, #BMB_bookmarksToolbar, #BMB_bookmarksToolbar+menuseparator, #BMB_bookmarksPopup menuseparator[builder="end"], #BMB_unsortedBookmarks { display:none!important; }
#appmenu_showAllBookmarks, #appmenu_showAllBookmarks+menuseparator, #appmenu_bookmarkThisPage, #appmenu_subscribeToPage, #appmenu_subscribeToPageMenu, #appmenu_subscribeToPageMenupopup, #appmenu_subscribeToPageMenupopup+menuseparator, #appmenu_bookmarksPopup menuseparator[builder="end"], #appmenu_unsortedBookmarks { display:none!important; }
Изменено
Nice piece of code Cor-el. Tried it ,worked great :D
You're welcome
Do not forget to add the @namespace line at the start userChrome.css if it is missing, it is required for proper functioning.