X
Tap here to go to the mobile version of the site.

Support Forum

How do I delete default items in the Bookmarks menu?

Posted

I want to delete some fixed items from the bookmarks menu e.g. Show all bookmarks, other bookmarks etc.. I found some css that was supposed to do it but it does not work.

I want to delete some fixed items from the bookmarks menu e.g. Show all bookmarks, other bookmarks etc.. I found some css that was supposed to do it but it does not work.

Chosen solution

Cool. I just needed #organizeBookmarksSeparator & #bookmarksMenuItemsSeparator to finish it off.

Thanks for the assist

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • Shockwave Flash 28.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

More Information

Question owner

I have located the ids I want removed and can temporarily remove them with the editor

id="menu_bookmarkAllTabs" id="bookmarksToolbarSeparator" id="bookmarksToolbarFolderMenu" id="menu_unsortedBookmarks" id="otherBookmarksFolderPopup"

How do you make that permanent?

I have located the ids I want removed and can temporarily remove them with the editor id="menu_bookmarkAllTabs" id="bookmarksToolbarSeparator" id="bookmarksToolbarFolderMenu" id="menu_unsortedBookmarks" id="otherBookmarksFolderPopup" How do you make that permanent?
cor-el
  • Top 10 Contributor
  • Moderator
17472 solutions 157915 answers

Helpful Reply

Where (in what drop-down list) do you want to hide these items?

What code are you currently using in userChrome.css to hide these items?


You can find the IDs of some default items in the files posted further down. An example for Other Bookmarks for userChrome.css:

#menu_unsortedBookmarks, BMB_unsortedBookmarks { display:none!important; }

See menu_

See BMB_


See also:

Where (in what drop-down list) do you want to hide these items? What code are you currently using in userChrome.css to hide these items? ---- You can find the IDs of some default items in the files posted further down. An example for Other Bookmarks for userChrome.css: <pre><nowiki>#menu_unsortedBookmarks, BMB_unsortedBookmarks { display:none!important; } </nowiki></pre> ---- See menu_ *https://dxr.mozilla.org/mozilla-release/source/browser/base/content/browser-menubar.inc See BMB_ *https://dxr.mozilla.org/mozilla-release/source/browser/base/content/browser.xul ----- See also: *https://www.userchrome.org/how-create-userchrome-css.html *https://www.userchrome.org/what-is-userchrome-css.html

Question owner

I wasn't using userChrome that was just highlighting and deleting via the developer console.

I have managed to remove most of them by adding this to the css e.g.

#bookmarksToolbarSeparator,
#menu_bookmarkAllTabs { display: none !important; }

Just have one pesky separator left at the top

edit: For some reason this page's formatting is changing typed hashtags "#" into the numbers 1. and 2. This could prove very frustrating for people trying to replicate this code

I wasn't using userChrome that was just highlighting and deleting via the developer console. I have managed to remove most of them by adding this to the css e.g. <pre><nowiki>#bookmarksToolbarSeparator, #menu_bookmarkAllTabs { display: none !important; }</nowiki></pre> Just have one pesky separator left at the top edit: For some reason this page's formatting is changing typed hashtags "#" into the numbers 1. and 2. This could prove very frustrating for people trying to replicate this code

Modified by cor-el

cor-el
  • Top 10 Contributor
  • Moderator
17472 solutions 157915 answers

Helpful Reply

Some selectors you can try:

#bookmarksShowAll
#organizeBookmarksSeparator
#menu_bookmarkThisPage
#menu_bookmarkAllTabs
#bookmarksToolbarSeparator
#menu_unsortedBookmarks
#bookmarksMenuItemsSeparator
Some selectors you can try: <pre><nowiki>#bookmarksShowAll #organizeBookmarksSeparator #menu_bookmarkThisPage #menu_bookmarkAllTabs #bookmarksToolbarSeparator #menu_unsortedBookmarks #bookmarksMenuItemsSeparator</nowiki></pre>

Chosen Solution

Cool. I just needed #organizeBookmarksSeparator & #bookmarksMenuItemsSeparator to finish it off.

Thanks for the assist

Cool. I just needed #organizeBookmarksSeparator & #bookmarksMenuItemsSeparator to finish it off. Thanks for the assist