A Manifest V3 Chrome extension that uses Mozilla's Readability.js algorithm to extract the current page's main article title and clean HTML content.
- Run
npm installfrom this directory if dependencies have not been installed. - Open
chrome://extensions. - Enable Developer mode.
- Choose Load unpacked and select this directory.
- Open an article, click the extension icon, then choose Convert to EPUB.
The popup extracts the title and clean HTML, embeds available article images under OEBPS/images/, packages everything as an EPUB 3.0 file, and starts a browser download. The Include images checkbox controls whether images are embedded; it is checked by default and the choice is remembered for next time via chrome.storage.sync. Pages that Chrome protects, such as chrome:// pages or the Chrome Web Store, cannot be injected. Images that block extension requests are omitted from the EPUB.
manifest.json: MV3 metadata, permissions, and popup registration.popup.html,popup.css,popup.js: popup UI, click-to-inject workflow, EPUB packaging, and download.content.js: runs in the page's isolated world and callsReadability.readability.js: vendored distribution from@mozilla/readability.jszip.min.js: vendored browser bundle fromjszip.