This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ค้นหาฝ่ายสนับสนุน

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.

เรียนรู้เพิ่มเติม

Firefox reader for PDF

  • 2 การตอบกลับ
  • 1 คนมีปัญหานี้
  • 1 ครั้งที่ดู
  • ตอบกลับล่าสุดโดย jscher2000 - Support Volunteer

more options

Guys, tell me how to change the background of the firefox reader, the white background loads the eyes heavily, tried to use the Dark reader extension, but nothing has changed for me

Guys, tell me how to change the background of the firefox reader, the white background loads the eyes heavily, tried to use the Dark reader extension, but nothing has changed for me

การตอบกลับทั้งหมด (2)

more options

It's easy to change the area around the document, but Firefox doesn't have a built-in feature to modify the appearance of the document itself. For that you would need to delve into the world of userContent.css files, which is tricky for reasons I'll save for later.

Dark Theme Preference

Firefox generally tries to follow your system-level preference for a "dark theme" on most internal pages like the PDF viewer. If your system isn't setting that flag, you can create a new preference to tell Firefox (and websites that care) about your dark theme preference. Here's how:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box, type or paste ui.systemUsesDarkTheme

(3) Firefox should display a bar with some radio buttons to choose a new preference type, followed by a + button. Choose Number and click the + button:

(D) Edit the value from 0 (Light) to 1 (Dark) and then click the blue check mark button or press Enter/Return to save the change.

Success?

If you want to return Firefox to figuring this out for itself, click the trash can at the right end of the row to remove this preference.

more options

These posts discuss how to change the colors in the PDF itself:

(1) Invert the colors using a simple style rule in userContent.css

This lacks flexibility because it's global.

https://support.mozilla.org/en-US/questions/1281116#answer-1295331

(2) Create a "bookmarklet" to modify the colors

A bookmarklet is a bookmark that has a script as its address instead of a regular URL. A click on the bookmark runs the script in the context of the current page. So while this is not automatic, it gives you more control.

https://support.mozilla.org/en-US/questions/1281116#answer-1295338