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

搜索 | 用户支持

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

详细了解

Keyboard shortcut to toggle on and off dark background.

  • 2 个回答
  • 1 人有此问题
  • 14 次查看
  • 最后回复者为 bobby112283

more options

I like to toggle back and forth from a dark background to a light background depending on the website. I'm using Firefox's built-in feature. I downloaded an add-on to easily do this from the toolbar(https://addons.mozilla.org/en-US/firefox/addon/toolbar-buttons/). However, I would like to do this through the keyboard. Is this possible? AppleScript code would be an acceptable option.

This is how you get to the setting: preferences>content>colors>Override the colors specified by the page with my selections above

I like to toggle back and forth from a dark background to a light background depending on the website. I'm using Firefox's built-in feature. I downloaded an add-on to easily do this from the toolbar(https://addons.mozilla.org/en-US/firefox/addon/toolbar-buttons/). However, I would like to do this through the keyboard. Is this possible? AppleScript code would be an acceptable option. This is how you get to the setting: preferences>content>colors>Override the colors specified by the page with my selections above

所有回复 (2)

more options

Hey bobby Using your keyboard:

1.Press 'Ctrl' + 'F2' to highlight the menu bar and then press the right arrow to highlight the 'Firefox' menu. 2.Press the down arrow to highlight 'Preferences' and then press 'Enter'. 3.Make sure the 'Content' tab is selected. If not use the left / right arrow keys to select it. 4.Use the 'Tab' key to highlight the 'Colors' button and press the 'Spacebar' to select. 5.For your text colour, press 'Tab' to jump to it and press the 'Spacebar' to bring up the colour swatch. 6.Use the cursor keys to browse the list of colours and when the colour you want is highlighted press 'Enter'. 7.Repeat steps 5 and 6 to change the background color. 8.Make sure the 'Use system colors' checkbox is unchecked by using 'Tab' to navigate to the checkbox and press 'Spacebar' (if it is selected). 9.Next make sure the 'Allow pages to choose their own colors, instead of my selections above' checkbox is turned - 'Tab' to the checkbox and press 'Spacebar' to turn it off (uncheck the box). 10.Press 'Enter' and then press 'Apple' + 'W' to return to Firefox. 11.Finally press 'Apple' + 'R' to reload the page with your colour settings.

Try this and report back whether it worked or not

more options

I didn't get very far. I'm using a Mac computer and Firefox 48.0.1.

I pressed "command" "," to get the preferences.

Once preferences is open I cannot press the down key to move down to Content, I have to click the mouse so focus is in that section.

Once I am in content I press the tab and it never reaches the colors button. it goes from "learn more" > "learn more" > address bar > content.

That's as far as I got, if I get as far as your describing from my keyboard I can create a programmable key so I could toggle back and forth.

Thanks for helping!!