Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDFs aren't darkened in Microsoft Edge #8689

Closed
Dinoosauro opened this issue Apr 19, 2022 · 5 comments
Closed

PDFs aren't darkened in Microsoft Edge #8689

Dinoosauro opened this issue Apr 19, 2022 · 5 comments
Labels

Comments

@Dinoosauro
Copy link

Bug Report

Website Address

Every PDF

Bug Description

Opening a PDF in Microsoft Edge with Dark Mode doesn't darken the PDF, even if the "Allow access to file URLs" option is enabled from Edge's extension settings.

Steps To Reproduce

  • Open a PDF in Microsoft Edge
  • Dark reader will say that the PDF is being darken, but it'll be the same.

Expected Behavior

The PDF will be dark

Actual Behavior

The PDF remains the same

Screenshots

image

System Information

  • OS: Windows 11 Home 21H2, Build 22000.613
  • Browser: Microsoft Edge 100.0.1185.44
  • Dark Reader Version: 4.9.47

Additional Context

@Dinoosauro Dinoosauro added the bug label Apr 19, 2022
@Gusted
Copy link
Contributor

Gusted commented Apr 20, 2022

See #4497

@Gusted Gusted closed this as completed Apr 20, 2022
@Dinoosauro
Copy link
Author

Even enabling the "Allow access to file URLs" checkbox, unfortunately the problem remains

@Gusted
Copy link
Contributor

Gusted commented Apr 20, 2022

@luo-chuan
Copy link

If you use Firefox, you can edit userContent.css like this:

@media (prefers-color-scheme: dark){
  .pdfViewer{filter: invert(1) hue-rotate(180deg);}
}

If you use Chrome or Edge, install the extention "PDF Reader", then edit the extention option like this:

html[data-theme*="dark"] .pdfViewer{
  filter: invert(1) hue-rotate(180deg);
}

@Dinoosauro
Copy link
Author

@luo-chuan thank you so much! I've switched to Firefox since a few months, but I was unaware of the userContent.css trick. I love how customizable Firefox is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants