{"id":13583767,"url":"https://github.com/alexadam/save-as-ebook","last_synced_at":"2025-04-12T15:40:44.118Z","repository":{"id":43584816,"uuid":"63333652","full_name":"alexadam/save-as-ebook","owner":"alexadam","description":"Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension","archived":false,"fork":false,"pushed_at":"2022-02-26T12:47:38.000Z","size":4545,"stargazers_count":1115,"open_issues_count":45,"forks_count":73,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-04-03T16:12:17.608Z","etag":null,"topics":["ebook","ebooks","epub","epub-format","productivity","webextension","webextensions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexadam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-14T12:11:19.000Z","updated_at":"2025-03-27T04:36:07.000Z","dependencies_parsed_at":"2022-09-07T05:22:31.348Z","dependency_job_id":null,"html_url":"https://github.com/alexadam/save-as-ebook","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexadam%2Fsave-as-ebook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexadam%2Fsave-as-ebook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexadam%2Fsave-as-ebook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexadam%2Fsave-as-ebook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexadam","download_url":"https://codeload.github.com/alexadam/save-as-ebook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248590777,"owners_count":21129888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ebook","ebooks","epub","epub-format","productivity","webextension","webextensions"],"created_at":"2024-08-01T15:03:46.285Z","updated_at":"2025-04-12T15:40:44.101Z","avatar_url":"https://github.com/alexadam.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","webextension"],"sub_categories":[],"readme":"# save-as-ebook\n\nSave a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension\n\n\u003cimg src=\"https://github.com/alexadam/save-as-ebook/blob/master/ex11.png?raw=true\" width=\"350\"\u003e\n\n![alt ex2.png](https://github.com/alexadam/save-as-ebook/blob/master/ex2.png?raw=true)\n\n![alt ex3.png](https://github.com/alexadam/save-as-ebook/blob/master/ex3.png?raw=true)\n\n## How to install it\n\n### From [Chrome Web Store](https://chrome.google.com/webstore/detail/save-as-ebook/haaplkpoiimngbppjihnegfmpejdnffj)\n\nor manually (tested on v. 52.0.2743.116)\n\n```\n1. Navigate to chrome://extensions/\n2. Load unpacked extension ...\n3. Select the extension's directory\n```\n\n### From [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/saveasebook/)\n\nor manually (tested on v. 50.0a2)\n\n```\n1. Navigate to about:debugging\n2. Load temporary add-on ...\n3. Select the extension's directory\n```\n\n### Opera (tested on v. 39.0.2256.48)\n\n```\n1. Navigate to opera:extensions\n2. Load unpacked extension ...\n3. Select the extension's directory\n```\n\n## Convert .epub to .mobi\n\n```\nsudo apt-get install calibre\nebook-convert \"book.epub\" \"book.mobi\"\n```\n\n## Default Keyboard Shortcuts\n\n**NOTE** These shortcuts are not fixed and the browser will assign a different shortcut if the default one is taken\n\n| Shortcut | Description |\n| --- | --- |\n| Alt + Shift + 1 | Save current page as eBook |\n| Alt + Shift + 2 | Save current selection as eBook |\n| Alt + Shift + 3 | Add current page as chapter |\n| Alt + Shift + 4 | Add current selection as chapter |\n\n## How to change the default Shortcuts\n\nin Chrome:\n\n```\n1. Navigate to chrome://extensions/\n2. Scroll down\n3. Click on Keyboard shortcuts\n```\n\n## Added in 1.4.2\n - Added MIME type to the generated .epub file\n\n## Added in 1.4.1\n - Remove unnecessary permissions\n - Detect image type if the URL doesn't have a file extension (jpg, gif, png)\n - Reset the Busy indicator on errors\n - Remove hidden elements when style is not included\n - Replace iframes with divs\n\n## Added in 1.4\n - Smaller ebook file size\n - Fix for #37 - custom styles not applied \n - Fix for #36 - br tag missing from pre blocks\n - Fix for #31 - hanging in Busy state\n - Other misc bug fixes \n\n## Added in v1.3.4\n - Fix for MathML - the rendered expression is too large (Issue #26)\n - Add translation in Russian (thanks to @ Emil Khalikov) \u0026 Brazilian Portuguese (thanks to @welksonramos)\n\n## Added in v1.3\n - Keyboard shortcuts\n - Simplified tool bar menu\n - Misc bug fixes\n\n## Added in v1.2.2\n - fixed \u0026  \u0026amp; issue in title; Issue # 10\n\n## Added in v1.2.1\n - support for hr/br html tags\n\n## Added in v1.2\n - BETA: Support for CSS\n - BETA: Create / edit custom Styles\n - No errors from EPUB Validator (http://validator.idpf.org/) + this should fix the Google Play upload issue\n\n## Added in v1.1\n - Chapter Editor: option to save changes\n - Chapter Editor: option to remove all chapters\n - persist Chapter Editor changes \u0026 chapters after generating an eBook or after a browser restart\n\n## To-Do\n - make the Custom Style Editor more user friendly\n - support backup / restore for Custom Styles\n - DONE fix all 'epubcheck' errors (https://github.com/IDPF/epubcheck)\n - clean \u0026 optimize code\n - create tests\n - support other formats (mobi, pdf etc.)\n - show confirmations (ui/ux)\n - display errors (ui/ux)\n - DONE support custom style\n - add 'remove from ebook' right click menu action\n\n## Run Tests (Work in progress...)\n ```\n cd tests\n yarn install  # install puppeteer\n node test/index.js  # should start a chrome instance with Save as eBook loaded\n\n # it will generate and save the ebook in ./tmp-downloads\n\n .... \n ```\n\n## Credits\n - http://ebooks.stackexchange.com/questions/1183/what-is-the-minimum-required-content-for-a-valid-epub\n - https://github.com/blowsie/Pure-JavaScript-HTML5-Parser\n - https://stuk.github.io/jszip/\n - http://johnny.github.io/jquery-sortable/\n - https://github.com/eligrey/FileSaver.js/\n - https://www.iconfinder.com/icons/753890/book_books_education_library_study_icon#size=128\n - Thanks to [pumpk0n](https://github.com/pumpk0n) and [Francois Bocquet](https://github.com/fbocquet) for helping me with the French translation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexadam%2Fsave-as-ebook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexadam%2Fsave-as-ebook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexadam%2Fsave-as-ebook/lists"}