LNReader / lnreader

Light novel reader for Android.
https://lnreader.github.io
MIT License
1.79k stars 192 forks source link

Permanent application of the JS to exported Epubs #737

Closed Palloxin closed 1 year ago

Palloxin commented 1 year ago

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

rajarsheechatterjee commented 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.

Svk1190 commented 1 year ago

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.