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

搜索 | 用户支持

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

详细了解

Customize specific web page - reverse the black background and white font

  • 3 个回答
  • 3 人有此问题
  • 7 次查看
  • 最后回复者为 FredMcD

more options

I frequent at least one web page that makes my eyes hurt using it. I want to reverse the black background and white font but when I do that in the 'change the fonts and colors websites use' it, of course, changes all of the sites.

Is there a way to customize just one, or a few, specific web pages? Is there a way to do that without my having to change settings in my options for reading that specific site and then changing it back to default in order to not effect other sites?

Thank you so very much! Jad~

I frequent at least one web page that makes my eyes hurt using it. I want to reverse the black background and white font but when I do that in the 'change the fonts and colors websites use' it, of course, changes all of the sites. Is there a way to customize just one, or a few, specific web pages? Is there a way to do that without my having to change settings in my options for reading that specific site and then changing it back to default in order to not effect other sites? Thank you so very much! Jad~

所有回复 (3)

more options

The cheesy instant ways are:

(1) Select the page content using Ctrl+a. Of course, if you need to interact with the page, you'll lose the selection as soon as you start clicking.

(2) Disable the site's style sheet using (menu bar) View > Page Style > No Style. (If you do not display the classic menu bar, you can show it temporarily by tapping the Alt key or the F10 key.) You lose the layout and background images this way, which can make some sites hard to use.

I found a couple extensions that say they can change page colors, but I haven't tried them myself:

Or if it works with the page, you could try https://www.readability.com/ which pulls in the page content and renders it into a clean reading view. However, registration is required.

For a truly custom approach, there are two general purpose ways to apply your own style rules to specific sites: the Stylish extension and a userContent.css files. In either case, you need to craft style rules that switch the page to the preferred style. The complexity of the project depends on the site. (Please post an address for specific suggestions.)

Hope one of these fits the bill!

more options

If you visit such websites frequently then you can consider to create specific CSS rules to override those colors and place this code in userContent.css or use the Stylish extension.

You can use the built-in Inspector to check which elements need to be adjusted and disable CSS rules by removing their tick to see what works.

If you are lucky then only the body needs a rule. Add the !important flag to override an existing rule.

There are also bookmarklets possible to set the page colors to black (gray) text and white (light-gray) background. I usually use those in such cases.

javascript:(function(){var SS=document.createElement('style');SS.setAttribute('type','text/css');SS.id='style_bbw';SS.innerHTML='body,body *{color:#222!important;background-color:#f8f8f8} a[href],a[href] *{color:#25f!important}a[href^="javascript:"]{cursor:move;color:green!important}';document.getElementsByTagName('head')[0].appendChild(SS);})()

You can use this bookmarklet to toggle the style on/off:

javascript:(function(){E=document.querySelector('style[id="style_bbw"]');S=E.disabled;E.disabled=(S==true)?false:true;})()
more options

NoSquint {web link} NoSquint allows you to adjust the text-only and full-page (both text and images) zoom levels as well as color settings both globally (for all sites) and per site.