搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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.