Closed Palloxin closed 1 year ago
I don't think this is possible as Custom JS is a part of a script
tag in the HTML and uses DOM methods which cannot be applied outside of it.
Epub3 readers support Javascript, for example: Reasily, Lithium, PocketBook, Gitden Reader, Aldiko Next, Overdrive, Bluefire Reader, BookFusion, Infinity Reader, and possibly many more Android apps.
Describe your suggested feature
Instead of including the custom JS into the EPUB (and hope to find a good reader that supports it) apply permanently the changes that comes with the JS injection making the EPUB more compatible with epub readers that do not support JS.
Why
Few readers support JS, so just change permanently the text based on the custom JS injected so the EPUB will not have the JS in it.
Other details
It would make the js injection in epubs way more comfortable since it would make the epub file very compatible with epub readers.
Acknowledgements