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

Diễn đàn trợ giúp

CSS code to remove the following from the bookmarks drop down menu?

Được đăng

Hello,

What is the CSS code to remove the following separation lines present in the following image?

https://i.postimg.cc/Jh5rmhBX/Bookmarks-Highlighted.jpg


I have managed to remove all of the text that I was aiming to with the following:

  1. BMB_viewBookmarksSidebar,
  2. BMB_bookmarksShowAllTop,
  3. BMB_bookmarksShowAllTop + menuseparator,
  4. BMB_bookmarksToolbar,
  5. BMB_unsortedBookmarks, {display:none!important;}

However there are still two separator lines that I'm not able to figure out how to remove that were above and below the "Mozilla Firefox" button that you can remove by simply right clicking and hitting "delete".

https://i.postimg.cc/KYTX6kxm/Bookmarks-Menu.jpg


This is what I'm left with above my bookmarks now:

https://i.postimg.cc/KYTX6kxm/Bookmarks-Menu.jpg


Cheers.

Hello, What is the CSS code to remove the following separation lines present in the following image? https://i.postimg.cc/Jh5rmhBX/Bookmarks-Highlighted.jpg I have managed to remove all of the text that I was aiming to with the following: #BMB_viewBookmarksSidebar, #BMB_bookmarksShowAllTop, #BMB_bookmarksShowAllTop + menuseparator, #BMB_bookmarksToolbar, #BMB_unsortedBookmarks, {display:none!important;} However there are still two separator lines that I'm not able to figure out how to remove that were above and below the "Mozilla Firefox" button that you can remove by simply right clicking and hitting "delete". https://i.postimg.cc/KYTX6kxm/Bookmarks-Menu.jpg This is what I'm left with above my bookmarks now: https://i.postimg.cc/KYTX6kxm/Bookmarks-Menu.jpg Cheers.

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

Did you intend to hide Other Bookmarks? That is what #BMB_unsortedBookmarks should do so I'm not sure why it was in your first image.

You'll want to use the Adjacent sibling combinator (+ sign) to identify that first circled separator. The separator shown below Other Bookmarks actually is after a hidden Mobile Bookmarks item. Depending on how it was hidden, one of these should work:

#BMB_viewBookmarksSidebar,
#BMB_bookmarksShowAllTop,
#BMB_bookmarksShowAllTop + menuseparator,
#BMB_bookmarksToolbar,
#BMB_unsortedBookmarks, 
#BMB_unsortedBookmarks + menuseparator,
#BMB_mobileBookmarks + menuseparator   {
  display: none !important;
}

The other (lower) separator is part of your bookmarks. Open up the Library window using either

  • Ctrl+Shift+b
  • "Show All Bookmarks"

In the left column, click Bookmarks Menu.

The on the right side, find the separator you want to remove, right-click it, and choose Delete. If you mis-click, use Undo (Ctrl+z).

Does that cover it?

Đọc câu trả lời này trong ngữ cảnh 0
Trích dẫn

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

Ứng dụng

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

Thông tin chi tiết

jscher2000
  • Top 10 Contributor
8577 giải pháp 70121 câu trả lời
Được đăng

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

Did you intend to hide Other Bookmarks? That is what #BMB_unsortedBookmarks should do so I'm not sure why it was in your first image.

You'll want to use the Adjacent sibling combinator (+ sign) to identify that first circled separator. The separator shown below Other Bookmarks actually is after a hidden Mobile Bookmarks item. Depending on how it was hidden, one of these should work:

#BMB_viewBookmarksSidebar,
#BMB_bookmarksShowAllTop,
#BMB_bookmarksShowAllTop + menuseparator,
#BMB_bookmarksToolbar,
#BMB_unsortedBookmarks, 
#BMB_unsortedBookmarks + menuseparator,
#BMB_mobileBookmarks + menuseparator   {
  display: none !important;
}

The other (lower) separator is part of your bookmarks. Open up the Library window using either

  • Ctrl+Shift+b
  • "Show All Bookmarks"

In the left column, click Bookmarks Menu.

The on the right side, find the separator you want to remove, right-click it, and choose Delete. If you mis-click, use Undo (Ctrl+z).

Does that cover it?

Did you intend to hide Other Bookmarks? That is what #BMB_unsortedBookmarks should do so I'm not sure why it was in your first image. You'll want to use the [https://developer.mozilla.org/docs/Web/CSS/Adjacent_sibling_combinator Adjacent sibling combinator (+ sign)] to identify that first circled separator. The separator shown below Other Bookmarks actually is after a hidden Mobile Bookmarks item. Depending on how it was hidden, one of these should work: <pre>#BMB_viewBookmarksSidebar, #BMB_bookmarksShowAllTop, #BMB_bookmarksShowAllTop + menuseparator, #BMB_bookmarksToolbar, #BMB_unsortedBookmarks, '''#BMB_unsortedBookmarks + menuseparator,''' '''#BMB_mobileBookmarks + menuseparator''' { display: none !important; } </pre> The other (lower) separator is part of your bookmarks. Open up the Library window using either * Ctrl+Shift+b * "Show All Bookmarks" In the left column, click Bookmarks Menu. The on the right side, find the separator you want to remove, right-click it, and choose Delete. If you mis-click, use Undo (Ctrl+z). Does that cover it?
Bài viết này có hữu ích với bạn không?
Trích dẫn

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

jscher2000 said

Did you intend to hide Other Bookmarks? That is what #BMB_unsortedBookmarks should do so I'm not sure why it was in your first image. You'll want to use the Adjacent sibling combinator (+ sign) to identify that first circled separator. The separator shown below Other Bookmarks actually is after a hidden Mobile Bookmarks item. Depending on how it was hidden, one of these should work:
#BMB_viewBookmarksSidebar,
#BMB_bookmarksShowAllTop,
#BMB_bookmarksShowAllTop + menuseparator,
#BMB_bookmarksToolbar,
#BMB_unsortedBookmarks, 
#BMB_unsortedBookmarks + menuseparator,
#BMB_mobileBookmarks + menuseparator   {
  display: none !important;
}

The other (lower) separator is part of your bookmarks. Open up the Library window using either

  • Ctrl+Shift+b
  • "Show All Bookmarks"

In the left column, click Bookmarks Menu.

The on the right side, find the separator you want to remove, right-click it, and choose Delete. If you mis-click, use Undo (Ctrl+z).

Does that cover it?

Sorry, I made a couple of tweeks right before posting which I failed to mention. Thanks for the tip on the botton separator in the "show all bookmarks" menu. I did not realize that was a UI removable item.

Regarding the top separator, your second bolded line took care of that as well.

Final stack looks as follows and took care of evenything:

#BMB_viewBookmarksSidebar,
#BMB_bookmarksShowAllTop,
#BMB_bookmarksShowAllTop + menuseparator,
#BMB_bookmarksToolbar,
#BMB_unsortedBookmarks,
#BMB_mobileBookmarks + menuseparator {display:none!important;}


Thanks for your time.

''jscher2000 [[#answer-1239113|said]]'' <blockquote> Did you intend to hide Other Bookmarks? That is what #BMB_unsortedBookmarks should do so I'm not sure why it was in your first image. You'll want to use the [https://developer.mozilla.org/docs/Web/CSS/Adjacent_sibling_combinator Adjacent sibling combinator (+ sign)] to identify that first circled separator. The separator shown below Other Bookmarks actually is after a hidden Mobile Bookmarks item. Depending on how it was hidden, one of these should work: <pre>#BMB_viewBookmarksSidebar, #BMB_bookmarksShowAllTop, #BMB_bookmarksShowAllTop + menuseparator, #BMB_bookmarksToolbar, #BMB_unsortedBookmarks, '''#BMB_unsortedBookmarks + menuseparator,''' '''#BMB_mobileBookmarks + menuseparator''' { display: none !important; } </pre> The other (lower) separator is part of your bookmarks. Open up the Library window using either * Ctrl+Shift+b * "Show All Bookmarks" In the left column, click Bookmarks Menu. The on the right side, find the separator you want to remove, right-click it, and choose Delete. If you mis-click, use Undo (Ctrl+z). Does that cover it? </blockquote> Sorry, I made a couple of tweeks right before posting which I failed to mention. Thanks for the tip on the botton separator in the "show all bookmarks" menu. I did not realize that was a UI removable item. Regarding the top separator, your second bolded line took care of that as well. Final stack looks as follows and took care of evenything: <pre> #BMB_viewBookmarksSidebar, #BMB_bookmarksShowAllTop, #BMB_bookmarksShowAllTop + menuseparator, #BMB_bookmarksToolbar, #BMB_unsortedBookmarks, #BMB_mobileBookmarks + menuseparator {display:none!important;} </pre> Thanks for your time.

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

Bài viết này có hữu ích với bạn không?
Trích dẫn
Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.