X
點擊此處開啟此網站的行動版。

技術支援討論區

How do I delete default items in the Bookmarks menu?

已張貼

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.

被選擇的解決方法

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

Thanks for the assist

從原來的回覆中察看解決方案 0
引用

額外的系統細節

已安裝的外掛程式

  • Shockwave Flash 28.0 r0

應用程式

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

更多資訊

提出問題者

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
17415 個解決方法 157316 個答案

有幫助的回覆

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
這篇文章有幫助嗎? 1
引用

提出問題者

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

由 cor-el 於 修改

這篇文章有幫助嗎?
引用
cor-el
  • Top 10 Contributor
  • Moderator
17415 個解決方法 157316 個答案

有幫助的回覆

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>
這篇文章有幫助嗎? 1
引用

選擇的解決方法

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
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題