Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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

  • 4 件の返信
  • 0 人がこの問題に困っています
  • 220 回表示
  • 最後の返信者: 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!