Created
April 1, 2024 21:46
-
-
Save TorsteinOvstedal/5cabcaa6cc6fd86be9df00d524079e18 to your computer and use it in GitHub Desktop.
Dark Mode in Firefox's PDF reader (invert colors)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage: Enter the JS snippet below into the web console (opened with Ctrl+Shift+K). | |
// Source: https://connect.mozilla.org/t5/ideas/dark-mode-for-embedded-pdf-viewer/idi-p/4932#link_30 | |
window.PDFViewerApplication.pdfViewer.container.style.filter = "invert(1) grayscale(1)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment