Skip to content

To change the white background of a pdf to a dark one, paste the code below into your console

Notifications You must be signed in to change notification settings

Mohammedjaseem/Chrome-Pdf-dark-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Chrome-Pdf-dark-mode-

To make the PDF appear darker, kindly copy the code and paste it into your console.

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

image

About

To change the white background of a pdf to a dark one, paste the code below into your console

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published