How can I preview PDFs with Google Chrome in dark mode / reverse color?
By default it is white:
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
var cover = document.createElement("div"); let css = ` position: fixed; pointer-events: none; top: 0; left: 0; width: 100vw; height: 100vh; background-color: white; mix-blend-mode: difference; z-index: 1; ` cover.setAttribute("style", css); document.body.appendChild(cover);
Special thanks: https://www.reddit.com/r/chrome/comments/e3txhi/comment/fem1cto
You can use the Dark Reader Google Chrome extension and used the
Filter+ mode. It will work on the online PDF files, but not at the local PDF files.