https://github.com/anipalur/night-pdf
A simple browser extension that applies a dark theme to your PDF viewer.
https://github.com/anipalur/night-pdf
accessibility browser-addon browser-extension chrome-extension edge-extension
Last synced: 3 months ago
JSON representation
A simple browser extension that applies a dark theme to your PDF viewer.
- Host: GitHub
- URL: https://github.com/anipalur/night-pdf
- Owner: anipalur
- License: gpl-3.0
- Created: 2025-02-20T05:26:55.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-20T07:56:13.000Z (3 months ago)
- Last Synced: 2025-02-20T08:26:34.614Z (3 months ago)
- Topics: accessibility, browser-addon, browser-extension, chrome-extension, edge-extension
- Language: JavaScript
- Homepage:
- Size: 454 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Night PDF
This repository hosts the source code for the Night PDF extension, a simple browser extension that applies a dark theme to your PDF viewer.
![]()
This extension is a fork of [PDF Dark Theme][pdf-dark-theme-link] by [Chris Straka][chris-straka-link] with some extra functionality, specifically:
- Toggling between multiple dark themes by clicking the extension icon
- Works on local and online PDFs## Using and Customising the Extension
To use the extension, [download and install the extension](https://dev.to/ben/how-to-install-chrome-extensions-manually-from-github-1612 "Learn how to download and install extensions from GitHub.")
using Developer Mode (this extension is not available via the Chrome Web Store or other extension websites). Refresh any open tabs after installing the extension.To customise the dark themes, simply modify the [colours in the `backgroundColours` array](https://github.com/anipalur/night-pdf/blob/main/content-script.js#L10 "View the colours in the backgroundColours array.") in content-script.js.
## Attribution
- Thank you to [Chris Straka][chris-straka-link] for his original [PDF Dark Theme][pdf-dark-theme-link] extension!
- Thank you to [Tabler Icons](https://tabler.io/icons "Learn more about Tabler Icons.") for the Night PDF icon!
- Thank you to [File Examples](https://file-examples.com "Learn more about File Examples.") for the sample PDF shown in the cover image.## Licences
**Copyright © 2025 Anitej Palur**
The source code for this extension is licensed under a [GNU GPLv3 License](https://www.gnu.org/licenses/gpl-3.0.html "Learn more about the GNU GPLv3 License.").See [LICENSE](/LICENSE "View the LICENSE file.") for more information.
[pdf-dark-theme-link]: https://github.com/chris-straka/pdf-dark-theme "View the PDF Dark Theme GitHub repository."
[chris-straka-link]: https://cstraka.dev "Learn more about Chris Straka."