X
Nhấn vào đây để đến phiên bản di động của trang web.

Diễn đàn trợ giúp

How do I delete default items in the Bookmarks menu?

Được đăng

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.

Giải pháp được chọn

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

Thanks for the assist

Đọc câu trả lời này trong ngữ cảnh 0

Chi tiết hệ thống bổ sung

Phần bổ trợ đã cài đặt

  • Shockwave Flash 28.0 r0

Ứng dụng

  • Chuỗi đại diện người dùng: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Thông tin chi tiết

Người tạo câu hỏi

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
17564 giải pháp 158858 câu trả lời
Được đăng

Câu trả lời hữu ích

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

Người tạo câu hỏi

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

Được chỉnh sửa bởi cor-el vào

cor-el
  • Top 10 Contributor
  • Moderator
17564 giải pháp 158858 câu trả lời
Được đăng

Câu trả lời hữu ích

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>

Giải pháp được chọn

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