X
Tap here to go to the mobile version of the site.

Support Forum

Change default color of Firefox when opening links in a new tab

Posted

I'm using Stylish addon for Firefox with a default dark css. I also have changed the default Window colors in Windows registry. This has changed the about:blank page's color to a dark one. But when I open a link on a new tab, before the page loads, Firefox is showing a blank page with white background. I wonder how can I change this white color to a different one.

I'm using Stylish addon for Firefox with a default dark css. I also have changed the default Window colors in Windows registry. This has changed the about:blank page's color to a dark one. But when I open a link on a new tab, before the page loads, Firefox is showing a blank page with white background. I wonder how can I change this white color to a different one.

Chosen solution

See also the discussion in this old MozillaZine forum thread.

Read this answer in context 1

Additional System Details

This happened

Every time Firefox opened

This started when...

Openning a new tab

Installed Plug-ins

  • VLC media player Web Plugin 2.0.2
  • Shockwave Flash 11.1 r102
  • 5.0.61118.0
  • NPWLPG
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
12005 solutions 111552 answers

Try to style the about:newtab page with this selector.


@-moz-document url(about:newtab){
#newtab-scrollbox { background-image: none !important; background-color: #ffc !important; }
}
Try to style the about:newtab page with this selector. ----- <pre><nowiki>@-moz-document url(about:newtab){ #newtab-scrollbox { background-image: none !important; background-color: #ffc !important; } }</nowiki></pre>

Modified by cor-el

Question owner

Sorry to say, but it didn't help. My new tab page already has a dark background. What I what is to change the "White" color when I "Ctrl+Click" on a link or select to open it in new tab and immediately switch to it before it loads. When I add a new tab, it has a dark background.

Sorry to say, but it didn't help. My new tab page already has a dark background. What I what is to change the "White" color when I "Ctrl+Click" on a link or select to open it in new tab and immediately switch to it before it loads. When I add a new tab, it has a dark background.
finitarry
  • Top 25 Contributor
208 solutions 3054 answers

Helpful Reply

One way you can do that if you are using a third party theme is to add this line into the browser.css file in the browser subdirectory in the .jar file.

browser {background: blue;}

Change the colour to whatever you like, then put the revised browser.css file back into the archive and reinstall the theme.

One way you can do that if you are using a third party theme is to add this line into the browser.css file in the browser subdirectory in the .jar file. browser {background: blue;} Change the colour to whatever you like, then put the revised browser.css file back into the archive and reinstall the theme.
cor-el
  • Top 10 Contributor
  • Moderator
12005 solutions 111552 answers

Chosen Solution

See also the discussion in this old MozillaZine forum thread.

See also the discussion in this old MozillaZine forum thread. *http://forums.mozillazine.org/viewtopic.php?f=38&t=571141

Question owner

I created a folder named "Chrome" in this location: C:\Users\[user]\AppData\Roaming\Mozilla\Firefox\Profiles\[profile]\

and created an empty userChrome.css file with this line:

browser { background-color: #373739 !important; }

It worked fine. Thanks for the replies.

I created a folder named "Chrome" in this location: C:\Users\[user]\AppData\Roaming\Mozilla\Firefox\Profiles\[profile]\ and created an empty '''userChrome.css''' file with this line: browser { background-color: #373739 !important; } It worked fine. Thanks for the replies.

Modified by alirezanoori