為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Remove favicons blank icon completely

  • 10 回覆
  • 2 有這個問題
  • 4 次檢視
  • 最近回覆由 Fnights

more options

Hi, with the code i find here i can remove the empty favions placeholders in the bookmark toolbar:

  1. bookmarksMenu menuitem .menu-iconic-icon {display:none !important;}

However a black space still present on the left: http://oi42.tinypic.com/2v2gwaa.jpg

Is possible to remove this blank space and move the bookmark on the left? http://oi41.tinypic.com/25h8m.jpg

Thanks

Hi, with the code i find here i can remove the empty favions placeholders in the bookmark toolbar: #bookmarksMenu menuitem .menu-iconic-icon {display:none !important;} However a black space still present on the left: http://oi42.tinypic.com/2v2gwaa.jpg Is possible to remove this blank space and move the bookmark on the left? http://oi41.tinypic.com/25h8m.jpg Thanks

所有回覆 (10)

more options

Try this code in userChrome.css

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#PlacesToolbarItems .bookmark-item > .toolbarbutton-icon {display:none!important}
more options

Unfortunately don't work, the empty space still present on the left.

more options

Does other code in the userChrome.css work?

Sounds like one of the cases that you created a text file with a hidden .txt file extension.

What is the file type if you check this in the Properties via the right-click context menu?

Try to rename the current file with quotes around the name or use Notepad to create a new file and make sure to select All files when using Save as to save the file. Windows can be quite stubborn with adding a .txt file extension.

See also:

more options

This is my current userChrome.css file:

/* this line is needed only once */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Bookmark This Page */
#appmenu_bookmarkThisPage,
#menu_bookmarkThisPage,
#BMB_bookmarkThisPage { display: none !important; }

/* Subscribe to This Page */
#appmenu_subscribeToPage,
#appmenu_subscribeToPageMenu,
#appmenu_subscribeToPageMenu + menuseparator,
#subscribeToPageMenuitem,
#subscribeToPageMenupopup,
#menu_bookmarkAllTabs, /* show-only-for-keyboard */
#menu_bookmarkAllTabs + menuseparator,
#BMB_subscribeToPageMenuitem,
#BMB_subscribeToPageMenupopup,
#BMB_subscribeToPageMenupopup + menuseparator { display: none !important; }

/* Bookmarks Toolbar */
#appmenu_bookmarksToolbar,
#appmenu_bookmarksToolbar + menuseparator,
#bookmarksToolbarFolderMenu,
#bookmarksToolbarFolderMenu + menuseparator,
#BMB_bookmarksToolbar,
#BMB_bookmarksToolbar + menuseparator { display: none !important; }

/* Unsorted Bookmarks */
#appmenu_bookmarksPopup > menuseparator[builder="end"], #appmenu_unsortedBookmarks,
#bookmarksMenuPopup > menuseparator[builder="end"], #menu_unsortedBookmarks,
#BMB_bookmarksPopup > menuseparator[builder="end"], #BMB_unsortedBookmarks { display: none !important; }

/* Open all tabs */
.bookmarks-actions-menuseparator,
.openintabs-menuitem { display: none !important; }

/* Bookmarks Menu - Hide favicons and placeholders but show folder icons for menus */
/* #bookmarksMenu menuitem .menu-iconic-icon {display:none !important;} */

I use some optimizations for the bookmark toolbar, like hide some options i don't need. But i don't think that this interfere.

由 cor-el 於 修改

more options

The last one is diable indeed till i find a way to align the bookmark , if this is possible.

more options

You wrote in the first post: remove the empty favions placeholders in the bookmark toolbar
So that looks like it meant for the Bookmarks Toolbar and the CSS I posted above should hide the favicons on that Bookmarks Toolbar.
For icons on the tab bar you would need different code.

Code with a #bookmarksMenu selector will work for the Bookmarks menu on the menu bar when this toolbar is visible.

Did you test this with the default theme and possibly other extensions disabled in case you have some that affect the Bookmarks Toolbar?

more options

Yes, indeed i try to disable all my extensions. Have you any other tip to try?

more options

Does the code I wrote above remove the favicons on the Bookmarks Toolbar?

more options

Just a comment in passing

Why are you trying to remove favicons blank icon Normally you probably should not have many. There would often be a correct icon there.

I suppose I am wondering are you trying to remove all the favicons or just blank ones, and do you have a lot of blank ones for some reason ?

more options

Maybe is my fault not to be more clear, i post an image below so you can understand better what i want to do if this is possible:

http://oi39.tinypic.com/209sxgl.jpg

On the left column there is the normal bookmar menù without any code, in the right the bookmark menù with the code, as you can notice i remove the placeholder icon of the favicons but there is now a blank space, i want to move the text covering this blank space to be aligned vertically with the yellow folders. Is this possible or not?

Is not a big deal in the end, just wondering.