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

Doesn't apply to PDF files opened on firefox #1541

Closed
RenatoLopes771 opened this issue Sep 2, 2019 · 4 comments
Closed

Doesn't apply to PDF files opened on firefox #1541

RenatoLopes771 opened this issue Sep 2, 2019 · 4 comments

Comments

@RenatoLopes771
Copy link

So if I open a PDF file (a guess that it can also apply to txt or word documents) it doesn't dark the whites, it would be a cool feature to have.

Altough that got me thinking... if there exists an open source program that is like dark reader but for these kind of files, it's just a matter of implementation (and if anyone has found one like that or maybe a plugin link it to me because I would like to download it)

@IgorKrupenja
Copy link
Contributor

Duplicate of #374

@dn7
Copy link

dn7 commented Jun 8, 2020

Workaround (one click per PDF):
create a new bookmark (bookmarklet) with the following Location (target):
javascript:void(viewer.style = 'filter: grayscale(0%) invert(100%) contrast(100%) brightness(100%)')

Per #374 (comment)
Thanks to @ak0005

@Gusted
Copy link
Contributor

Gusted commented Aug 15, 2020

Firefox won't allow us to access pdf pages.

@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);
}

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

No branches or pull requests

5 participants