The Dark Reader plug-in converts web pages into dark themes, which helps protect eyes when reading documents for a long time. However, downloading Chrome Reader from the official website is not feasible for most people in China, and downloading plug-ins from third parties is sometimes untrustworthy. Then, compile it from the source code yourself.
surroundings
Node.js development environment has been installed
Get the source code
Go to https://github.com/darkreader/darkreader site and download as zip
Compile
# (1) 解压源代码
# (2) 进入源代码目录
# (3) 安装依赖
npm install
# (4) 编译
npm run release # 编译生成build.zip
Note: The compiled build.zip has been renamed darkreader-for-chrome-4.7.12.zip and uploaded to https://download.csdn.net/download/hylaking/11262809
installation
In the Chrome browser, click the menu, More Tools -> Extensions, and then drag build.zip into it, the installation is complete