Back to Easydict

Dark Reader

Easydict/Swift/Utility/DarkReader/README.md

2.22.0850 B
Original Source

Dark Reader

This directory vendors a minified browser API build from [email protected] for Easydict WebView features. Feature-specific pages opt in to the shared local runtime, so they keep working offline without enabling it for every WebView.

To update the vendored runtime, use npm pack darkreader@<version>, copy the package's darkreader.js and LICENSE, then run:

sh
npx [email protected] darkreader.js \
  --compress \
  --mangle \
  --output darkreader.min.js

Update the version and checksum above, and do not commit the unminified source.