Applies a dark theme to your PDF viewer

Latest Version

Version
1.04
Update
May 9, 2024
Size
20.15KiB
Developer
Category
Users
3,000+
Rating
2.88889 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
See more

PDF Dark Theme Extension

⚠️IMPORTANT⚠️: This extension won't work until you give it permission to access file URLs. You can do so by heading to your browser's extension page and enabling file access there.

⚠️IMPORTANT⚠️: This extension will only work on PDFs that you have installed locally on your computer. If you want it to work on PDFs you find online as well i.e. http://www.africau.edu/images/default/sample.pdf, I recommend you use Arshpreet Buttar's DarkPDF extension instead @ https://chrome.google.com/webstore/detail/darkpdf/cfemcmeknmapecneeeaajnbhhgfgkfhp?hl=en.

⚠️IMPORTANT⚠️: Your PDF viewer should be set to light theme for this extension to work. If you try to open up a light PDF document in a dark PDF viewer, this extension is going to invert the colors for both of them. Leaving you with a dark PDF document and a light PDF viewer. You need to have both of a light PDF document and a light PDF viewer for the desired results.

EDIT: As pointed out in the reviews, you can't change the theme for chrome's default PDF viewer without changing the theme of your browser (as of May 2024 at least). I use the Vimium C PDF Viewer chrome extension instead, which gives me a different PDF viewer that can have a theme independent of the browser. Put chrome in dark theme, put vimium C pdf viewer in light theme, and it should work out. You can find that extension here.

https://chromewebstore.google.com/detail/pdf-viewer-for-vimium-c/nacjakoppgmdcpemlfnfegmlhipddanj

https://chromewebstore.google.com/detail/vimium-c-all-by-keyboard/hfjbmagddngcpeloejdejnfgbamkjaeg

This extension is a fork of Buttar's extension (from above) except it's one file only.

```js
let darkPdfDivStyles = `
pointer-events: none;
width: 100vw;
height: 100vh;
background-color: #e6e6e6;
mix-blend-mode: difference;
z-index: 1;
`;

let darkPdfDiv = document.createElement('div');
darkPdfDiv.setAttribute(\"style\", darkPdfDivStyles);
document.body.appendChild(darkPdfDiv)
```

EDIT: I ended up switching to Buttar's extension myself, but in case people still want this one I'll leave it up. If anyone wants to use my logo, it's public domain no attribution required (no warranty). Code is GPLv3.

https://github.com/chris-straka/pdf-dark-theme
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "PDF Dark Theme", "description": "Applies a dark theme to your PDF viewer", "version": "1.04", "icons": { "16": "imgs/dark16.png", "32": "imgs/dark32.png", "48": "imgs/dark48.png", "128": "imgs/dark128.png" }, "action": { "default_icon": { "16": "imgs/dark16.png", "32": "imgs/dark32.png", "48": "imgs/dark48.png", "128": "imgs/dark128.png" } }, "content_scripts": [ { "matches": [ "file://*.pdf" ], "run_at": "document_idle", "js": [ "content-script.js" ] } ], "host_permissions": [ "file://*.pdf" ]}
Read more

Similar Extensions

icon

DarkPDF Extension · Productivity 3,000+ 12 ★ 14.38KiB

icon

PDF Color Inverter Extension · Productivity 3,000+ 37 ★ 27.25KiB

icon

Dark Mode - Night Eye Extension · Accessibility 3,000+ 2320 ★ 1.19MiB

icon

DarkPDF by Waseem Akram Extension · Productivity 3,000+ 7 ★ 95.64KiB

icon

PDF Dark Mode Extension · Productivity 3,000+ 1 ★ 27.39KiB

icon

Dark Theme - Dark Reader for Web Extension · Accessibility 3,000+ 377 ★ 347KiB

icon

ANTDR: ANother Trivial Dark Reader Extension · Accessibility 3,000+ 1 ★ 12.17KiB

icon

Lunar Reader - Dark Theme & Night Shift Mode Extension · Accessibility 3,000+ 1338 ★ 405KiB

icon

doqment PDF Reader Extension · Productivity 3,000+ 21 ★ 4.28MiB

icon

Invert! Extension · Accessibility 3,000+ 96 ★ 22.53KiB

icon

DarkX PDF Extension · Accessibility 3,000+ 10 ★ 54.06KiB

icon

Dark Theme - Dark mode for Chrome Extension · Accessibility 3,000+ 3029 ★ 249KiB

icon

Flexi PDF Reader Extension · Productivity 3,000+ 10 ★ 3.8MiB

icon

Dark Mode for Chrome Extension · Accessibility 3,000+ 857 ★ 187KiB

icon

dark.pdf Extension · Productivity 3,000+ 0 ★ 39.86KiB

icon

PDF Dark Mode Extension · Productivity 3,000+ 4 ★ 19.08KiB

icon

Dark Mode - Dark Reader for Сhrome Extension · Accessibility 3,000+ 2555 ★ 658KiB

icon

Dark Mode Google Docs Extension · Accessibility 3,000+ 261 ★ 606KiB

icon

PDF Reader Extension · Productivity 3,000+ 78 ★ 5.87MiB

icon

DocsAfterDark Extension · Productivity 3,000+ 210 ★ 351KiB

icon

PDF Viewer Extension · Productivity 3,000+ 374 ★ 2.51MiB

icon

Dark Mode for Web Extension · Accessibility 3,000+ 445 ★ 76.08KiB

icon

Super dark mode Extension · Accessibility 3,000+ 7757 ★ 571KiB

icon

Instant Dark Mode Extension · Productivity 3,000+ 4 ★ 36.68KiB