为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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?

  • 11 个回答
  • 22 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

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.

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)

more options

See this post:

Check and tell if its working.

more options

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!

more options

选择的解决方案

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;}

由Hasan于修改

more options

Menu Editor 1.2.7

Use this extension to Hide Subscribe to this page.

Check and tell if its working.

more options

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;}

由cor-el于修改

more options

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.

more options

-> 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.

more options

-> 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.

more options

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; }

由cor-el于修改

more options

Nice piece of code Cor-el. Tried it ,worked great :D

more options

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.