搜索 | 用户支持

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

Learn More

Changing background color of search box and quick links in new tab

  • 4 个回答
  • 0 人有此问题
  • 72 次查看
  • 最后回复者为 aidantomcy

more options

How do I change the background color of the search box and quick links in a new tab? I'm using Firefox color.

How do I change the background color of the search box and quick links in a new tab? I'm using Firefox color.

被采纳的解决方案

Thank you so much!

定位到答案原位置 👍 0

所有回复 (4)

more options

Themes can change this with ntp_card_background but it is not exposed by Firefox Color.

Another way is with userContent.css:

@-moz-document url(about:home), url(about:newtab) {
  body {
    --newtab-background-color-secondary: red !important; 
  }

}

有帮助吗?

more options

So how do I change it? I'm not planning on publishing a theme (I'm just doing this to change the appearance of Firefox for myself). I tried poking around in the CSS and changing the variable works fine. How do I make it permanent?

由aidantomcy于修改

有帮助吗?

more options

Follow the same procedure here but name the file userContent.css instead of userChrome.css.

有帮助吗?

more options

选择的解决方案

Thank you so much!

有帮助吗?

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题