为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I display the bookmarks bar only when using a new tab?

  • 11 个回答
  • 20 人有此问题
  • 108 次查看
  • 最后回复者为 justinhustles

more options

Just like with Chrome. I don't want my bookmarks always displaying whenever I'm on a webpage. Just on a new tab.

Just like with Chrome. I don't want my bookmarks always displaying whenever I'm on a webpage. Just on a new tab.

被采纳的解决方案

Hmm, you have a whole new profile named f8iudjlk.chrome?? I'm not sure why...

I will assume your normal profile folder -- where all your "live" data is -- is qh3dt33j.default.

In the qh3dt33j.default folder, create an ordinary new folder named chrome and then move the userChrome.css file into that chrome folder.

(Sorry I don't know the details of how to do things on Finder... I expect a Macbook for the holidays and will know more in a couple weeks.)

定位到答案原位置 👍 0

所有回复 (11)

more options

Currently this can be customized by using userChrome.css. Add the following lines to the file,

@-moz-document url("chrome://browser/content/browser.xul") {

 .tab-close-button:not([pinned]) {
   display: -moz-box !important;
 }

}

This is courtesy of the post, https://www.reddit.com/r/firefox/comments/6yvi2j/yet_another_collection_of_addons_to_imitate_tab/

more options

To make sure I understand, this css file I just created is to go into this folder?

more options

That code won't help with displaying the Bookmarks Toolbar. This CSS code is about displaying a close button on each tab.

more options

Then how do I change make bookmarks only show when I open a new tab?

more options

You may want to look at this thread from the subreddit FirefoxCSS:

https://www.reddit.com/r/FirefoxCSS/comments/7evwow/show_bookmarks_toolbar_only_on_new_tab/

If you've never created a userChrome.css file before, see:

https://www.userchrome.org/how-create-userchrome-css.html

Does it work the way you want?

more options

How does this look? I saved everything, restarted Firefox, and I'm not seeing any changes

more options

选择的解决方案

Hmm, you have a whole new profile named f8iudjlk.chrome?? I'm not sure why...

I will assume your normal profile folder -- where all your "live" data is -- is qh3dt33j.default.

In the qh3dt33j.default folder, create an ordinary new folder named chrome and then move the userChrome.css file into that chrome folder.

(Sorry I don't know the details of how to do things on Finder... I expect a Macbook for the holidays and will know more in a couple weeks.)

more options

That worked. Thank you so much!!

more options

And now the bookmarks bar is gone.

more options

Can you make sure it is enabled on the toolbars list? Either:

  • right-click (on Mac Ctrl+click) a blank spot on the tab bar (or the "+" button)
  • (menu bar) View > Toolbars
    On Windows, tap the Alt key to activate the menu bar temporarily.
  • in Customize mode > Show/Hide Toolbars (see: Customize Firefox controls, buttons and toolbars)

To turn on the Bookmarks Toolbar, Menu Bar, or other bars, click it on the list.

If it's already enabled, possibly the rule does not work because the title has changed for some reason (the rule works by monitoring the title bar).

more options

Oh not sure how that got hidden. Works now. Thanks!