Skip to content

WebPullBook v1.4.0 (Beta)

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 04:11
· 48 commits to main since this release

WebPullBook v1.4.0 (Beta)

New Features

  • Redesigned Reader Profiles: Added Kindle (Legacy) (EPUB 2, tailored for Send to Kindle) and Kindle (Modern) (EPUB 3 for Calibre/KFX), alongside Modern Default, Kobo & E-Readers, Text Only, and Legacy Default. All profiles preserve image color (removed forced grayscale conversion). Updated selector order (Legacy Default above Custom). Reference guide available in docs/READER_PRESETS.md / docs/READER_PRESETS.pt.md.
  • Profile Selector in Advanced Options: Profiles act as complete fixed presets—picking a profile updates all corresponding advanced fields immediately, while modifying any advanced option switches the selector to Custom automatically.
  • Start-of-Book TOC & Customizable Information Page: Table of Contents (nav.xhtml / text/toc.xhtml) placed at the start of the book by default (with options to disable, move to end, or customize its title); Information Page allows toggling title, author/language/chapters, genres, source link, and synopsis.
  • Loading Overlay & Active-Tab Live DOM Capture: Instant loading overlay (#loading-overlay) on workspace launch and live DOM capture directly from the active tab (sourceTabId) via service-worker.js + PageDomCache, avoiding cold fetch() calls on SPAs and authenticated sessions.
  • Resilient Image Pipeline & [IMG] Logs: Binary magic-byte MIME sniffing (fixes octet-stream and rejects HTML 200 error pages disguised as images), automatic fallback to raw bytes if canvas conversion fails, anonymous retry (credentials: 'omit') on HTTP errors, content-hash deduplication across distinct URLs, animated GIF/APNG/WebP preservation, srcset/<picture>/data-orig-file resolution, and detailed [IMG] logging.
  • GenericHtmlParser & XHTML Sanitizer Upgrades: Added <br>-separated prose support, TOC vs. chapter classification (isTableOfContents), explicit TOC link discovery, automatic ascending order normalization, exact adjacent nextPrevUrls removal, __cf_email__ decoding, wp-block-spacer → <hr> conversion, inline-wrapped block unwrapping, leading duplicate heading removal, and internal cross-chapter EPUB link rewriting.
  • Adaptive Safe Mode, Manual Delay & SPA Security: AdaptiveRateLimiter with dynamic latency/error backoff, Retry-After compliance, and cooperative waiting; reusable TabRenderPool (1 background worker tab per queue), DOM stabilization wait, per-domain anti-bot circuit breaker, strict http(s): validation, and "Open page to verify ↗" banner button.
  • Library & Batch Updates: Added Download All Updates to check and export newly published chapters across saved works, plus optional unified vs. by-site grouping with domain filter and origin badges.
  • Visual Selector Picker (🎯 Pick), Quick Edit & Merge: Preview and inline quick-edit/merge chapters (with Edited badge), EPUB 3 Pop-up Footnotes, and COMPATIBILITY.md structured into 4 tiers.
  • Always-Visible Pause / Cancel Controls: Cancel prompts for confirmation, and closing an active export tab triggers a browser confirmation prompt (Chrome and Firefox).
  • Diagnostic Logs: Structured prefixes ([NET], [TAB], [SPA], [IMG], [SAFE], [PARSER], [BUILD], [AUTO], [CFG], [DONE]) with All/Warnings/Errors filters and Copy Log button.

Architecture & Testing

  • Modularized codebase following the Single Responsibility Principle (SRP):
    • src/core/ split into focused modules (base-parser.js, net-fetcher.js, rate-limiter.js, dnr-rules.js, image-processor.js, epub-templates.js, epub-css.js, text-utils.js, selector-utils.js, xhtml-serializer.js, with parser-engine.js as a backwards-compatible facade).
    • src/workspace/ split into focused UI controllers (state.js, i18n.js + locales/, logger.js, options-storage.js, directory-handle.js, domain-rules-ui.js, chapters-ui.js, cover-ui.js, chapter-modals.js, volume-modals.js, series-loader.js, export-runner.js, download-storage.js, library-ui.js, library-view.js, cache-sessions-ui.js, settings-io.js, tab-picker.js, workspace.js).
  • Added per-chapter parser resolution (resolveParserForChapterUrl) for multi-domain books and Merge Tabs.
  • Expanded test suite (54 unit/integration tests covering image pipeline, Adaptive Safe Mode, SPA security, generic extractor, presets, and i18n parity) plus Playwright Chromium E2E and W3C EPUBCheck in CI.

Installation / Update

  • Chrome / Chromium: Download WebPullBook-v1.4.0.zip below, extract it to a folder, open chrome://extensions/ with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed).
  • Mozilla Firefox (128+): Download WebPullBook-v1.4.0.zip, open about:debugging#/runtime/this-firefox, click Load Temporary Add-on..., and select the .zip file directly.