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

Support Forum

I accidentally changed my background to black and now cannot see anything on screen. How do I undo?

Posted

Text in white on white so I went to change font color to black and ended up changing background as well. Now everything is black so I can't see menus to undo. There was no 'Undo' option. Is there a workaround to return font/background color to default?

Text in white on white so I went to change font color to black and ended up changing background as well. Now everything is black so I can't see menus to undo. There was no 'Undo' option. Is there a workaround to return font/background color to default?

Chosen solution

Thanks for your suggestions. I went onto Safari and found a suggestion to use the upper right menu and reset to default. That did the trick and I didn't lose any saved bookmarks or other info. I agree that it would be helpful if you couldn't cause the problem in the first place. Or have a 'test' that defaults back to where you were after a few seconds - maybe then a second prompt to execute the change.

Read this answer in context 0
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Safari/605.1.15

More Information

FredMcD
  • Top 10 Contributor
4188 solutions 58454 answers

Start Firefox in Safe Mode {web link}

A small dialog should appear. Click Start In Safe Mode (not Refresh).

See if you can change things back from here.

[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode] {web link} A small dialog should appear. Click '''Start In Safe Mode''' (not Refresh). See if you can change things back from here.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17336 solutions 156740 answers

Helpful Reply

You can try to edit prefs.js in the profile folder and remove the corresponding lines or create a user.js file.

user_pref("browser.display.background_color", "#FFFFFF");
user_pref("browser.display.foreground_color", "#000000");

You can find the profile folder in this hidden location in AppData\Roaming.

  • %AppData%\Mozilla\Firefox\Profiles\

Open the folder with the random name: xxxxxxxx.default

Use a plain text editor to create a new text file and paste the above posted user_pref() lines in the file. Make sure you select "All files" in the dialog to save the file in the text editor as user.js using "Save File as".

You can try to edit prefs.js in the profile folder and remove the corresponding lines or create a user.js file. *http://kb.mozillazine.org/user.js_file <pre><nowiki>user_pref("browser.display.background_color", "#FFFFFF"); user_pref("browser.display.foreground_color", "#000000");</nowiki></pre> You can find the profile folder in this hidden location in AppData\Roaming. * %AppData%\Mozilla\Firefox\Profiles\ Open the folder with the random name: xxxxxxxx.default Use a plain text editor to create a new text file and paste the above posted <b>user_pref()</b> lines in the file. Make sure you select "All files" in the dialog to save the file in the text editor as <b>user.js</b> using "Save File as".
Was this helpful to you? 1
Quote
jscher2000
  • Top 10 Contributor
8573 solutions 70099 answers

Maybe someone should file a bug to make it impossible to assign the identical color to both text and background through the Colors dialog. You could still do it in about:config; it's hard to protect users there!

''Maybe someone should file a bug to make it impossible to assign the identical color to both text and background through the Colors dialog. You could still do it in about:config; it's hard to protect users there!''
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17336 solutions 156740 answers

To do this in about:config you would have to add event listeners to both these prefs and do a test to contrast difference between the two settings. There are functions that can achieve this and background and foreground can be swapped in some cases, so this could be extended to include this situation.

To do this in about:config you would have to add event listeners to both these prefs and do a test to contrast difference between the two settings. There are functions that can achieve this and background and foreground can be swapped in some cases, so this could be extended to include this situation.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17336 solutions 156740 answers

You can remove the user.js file once you are done because otherwise you won't be able to change these colors permanently (user.js is parsed each time you start Firefox).

You can remove the user.js file once you are done because otherwise you won't be able to change these colors permanently (user.js is parsed each time you start Firefox).
Was this helpful to you?
Quote

Chosen Solution

Thanks for your suggestions. I went onto Safari and found a suggestion to use the upper right menu and reset to default. That did the trick and I didn't lose any saved bookmarks or other info. I agree that it would be helpful if you couldn't cause the problem in the first place. Or have a 'test' that defaults back to where you were after a few seconds - maybe then a second prompt to execute the change.

Thanks for your suggestions. I went onto Safari and found a suggestion to use the upper right menu and reset to default. That did the trick and I didn't lose any saved bookmarks or other info. I agree that it would be helpful if you couldn't cause the problem in the first place. Or have a 'test' that defaults back to where you were after a few seconds - maybe then a second prompt to execute the change.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17336 solutions 156740 answers

Were (are) you using an inverted High Contrast theme on your Mac?

Were (are) you using an inverted High Contrast theme on your Mac?
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.