'doqment': a PDF viewer for Dark Reader users #11435
Replies: 3 comments 3 replies
-
Hi, @shivaprsd this looks interesting. As far as I understand, doqment is actually supposed to replace the browser's PDF viewer with a slightly patched copy, correct? I have a few suggestions if you are interested:
|
Beta Was this translation helpful? Give feedback.
-
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);
} |
Beta Was this translation helpful? Give feedback.
-
I tried it, but I want more freedom of customizing, so the PDF Reader is better for me. |
Beta Was this translation helpful? Give feedback.
-
Time and again I see Dark Reader users open issues here (#3585 #8954 #9637) regarding PDFs. In Firefox, Dark Reader does not work on PDFs, while in Chrome, there seems to be issues with the inversion.
@Gusted himself had submitted a patch (mozilla/pdf.js#13676) to the PDF.js team to have a better dark mode in the Firefox PDF viewer, but it was abandoned due to disagreements regarding implementation. Gusted was not satisfied with a CSS filter-only solution, which I guess is what DR currently does in Chrome anyway.
As this was the case, I went ahead and made an alternative PDF viewer browser extension from the PDF.js code. It's called doqment and IMHO it's the closest we can get, for PDFs, to Dark Reader's functionality for the web. Initially it was just a toy, but now I believe it has matured and is nearing production quality. So I present it to the dark-reading community. I welcome suggestions and feedbacks from everyone as to how to improve it further.
Here is a demo.
@alexanderby @Gusted Will you be willing to try out doqment and, if you find it good, recommend it to your users? You have a good deal of experience developing a great eye-care software. So I invite your contributions. I believe doqment shares the same vision (pun intended) as Dark Reader. They can work together to cover all use cases on the web.
Regards,
Shiva
Beta Was this translation helpful? Give feedback.
All reactions