
Site fixesĪutomatically syncing the site fixes to every Dark Reader user was disabled because the GitHub team does not allow using GitHub as a CDN. They originate from the webextension-api. These are to stub certain functions that the code will use. Import ) disableDarkMode ( ) followSystemColorScheme ( ) const CSS = await collectCSS ( ) const isEnabled = isDarkReaderEnabled ( ) īe aware that darkreader will add the chrome object onto the window object. Then you can use the following code to control Dark Reader's API or include the script via a CDN such as unpkg or jsDelivr.or build from the source code ( npm run api).
#Dark reader settings install#
Install the package from NPM ( npm install darkreader).You can use Dark Reader to enable dark mode on your website! This will create a build/release/darkreader-chrome.zip file for use in a Chromium-based browser and a build/release/darkreader-firefox.xpi file for use in Firefox. Open the terminal in the root folder and run: Download the source code (or check out from git). You can install the extension from a file. Read more about contributing to Dark Reader in CONTRIBUTING.md.

If the help page doesn't answer your question, open up a new discussion. Most questions can be answered by reading the help page. Dark Reader is feature-rich and is customizable in many ways throughout the UI. Dark Reader will generate a dark mode that aims to reduce the eyestrain of the user.


Dark Reader analyzes web pages and aims to reduce eyestrain while browsing the web.ĭark Reader is an open-source MIT-licensed browser extension designed to analyze web pages.
