Epub viewer on Electron that support text translation.
MIT License
Epub viewer on Electron.
This application is forked of futurepress/epubjs-reader: Epub.js Reader.
Quote from https://book.systemsapproach.org/
or
Electron Version:
Download app and Install it.
⚠️ This app is not signed. So, it will appear warning about un-signed app.
Web Version:
Build electron app
yarn install
yarn run dist
# output .app to dist/
Load reader/override.js
or <AppData>/mu-epub-viewer/override.js
if exists.
- macOS: ~/Library/Application Support/mu-epub-viewer/override.js
reader/override.js
reader/override.js
in renderer process.override.js
example: modify request url
const origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (...args) {
const originalURL = args[1];
const url = new URL(originalURL);
/// hack something...
args[1] = url.toString();
origOpen.apply(this, args);
};
npm version patch
git push --tags && git push
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT