github

alexadam / save-as-ebook

  • суббота, 20 августа 2016 г. в 03:13:12
https://github.com/alexadam/save-as-ebook

JavaScript
Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension



save-as-ebook

Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension

alt ex1.png

alt ex2.png

How to install it

Chrome (tested on v. 52.0.2743.116)

1. Navigate to chrome://extensions/
2. Load unpacked extension ...
3. Select the extension's directory

Firefox (tested on v. 50.0a2)

1. Navigate to about:debugging
2. Load temporary add-on ...
3. Select the extension's directory

Opera (tested on v. 39.0.2256.48)

1. Navigate to opera:extensions
2. Load unpacked extension ...
3. Select the extension's directory

Convert .epub to .mobi

sudo apt-get install calibre
ebook-convert "book.epub" "book.mobi"

To-Do

  • fix all 'epubcheck' errors (https://github.com/IDPF/epubcheck)
  • * there are some issues with relative URLs
  • clean & optimize code
  • create tests
  • convert svg to png
  • base64 imgs
  • 'save as image' option (render a selection and save it as image instead of text)
  • support other formats (mobi, pdf etc.)
  • show progress indication (ui/ux)
  • show confirmations (ui/ux)
  • display errors (ui/ux)
  • add settings & options page (ui/ux)

Credits