Repository navigation
Releases
Releases · WiltonGabriel/WebPullBook
WebPullBook v1.7.1 (Beta)
WebPullBook v1.7.1 (Beta)
Security, Integrity & EPUB/Export Reliability
- Sanitization, XHTML & EPUB 2/3 Compliance (
src/core/sanitizer.js,src/core/xhtml-serializer.js,src/core/epub-builder.js,src/core/epub-templates.js): Stripped XML 1.0 illegal control chars and unpaired surrogates (stripInvalidXmlChars), madeserializeChapterXhtmlidempotent via node cloning, normalized EPUB 2 markup (<figure>,<figcaption>,<blockquote>), guarded pop-up footnotes, decoded UTF-8__cf_email__, parsed comma-safesrcset, mapped<u>/<s>towpb-*spans, pruned dangling#fragmentlinks, normalized BCP-47 languages, convertedimage/bmpcovers/images, and localized generated book labels (Cover,Author,Synopsis,Table of Contents,Start,Information,End of Book) across EPUB, HTML, Markdown, and TXT exporters. - Image & Archive Hardening (
src/core/image-processor.js,src/core/zip.js,src/exporters/html-exporter.js): Expanded 512-byte magic-byte MIME sniffing (skipping UTF-8 BOM/comments and rejecting SVG/HTML payloads), added white#ffffffJPEG canvas flattening, enforced ZIP32 bounds/path-traversal/duplicate-entry checks withdeflate-rawerror fallback, escaped</styleinHtmlExporter, scoped per-chapter HTML IDs, and embedded chapter images as offlinedata:URIs. - Storage, Workspace & Import Security (
src/workspace/,src/core/text-utils.js): AddedsanitizeImportedOptions(),sanitizeDomainRules(),sanitizeCoverPreviewUrl(), and path-traversal guards insanitizePathSegment(),buildOutputPath(), andwriteBlobToDirectoryHandle(); fixed Blob URL lifecycle revocation viachrome.downloads.onChanged.
Concurrency, Networking, Parsers & CI
- DNR, SPA & Cache Concurrency (
src/core/dnr-rules.js,src/core/net-fetcher.js,src/core/cache-store.js,src/core/rate-limiter.js,src/background/service-worker.js): Serialized DNR mutations withwithDnrLockand ref-counted image slots (120..129) while preserving Firefox rule ID1and cleaning orphaned workspace rules; added 30s HTTP timeouts, RFC 9110 HTTP-dateRetry-After, post-redirect URL verification inTabRenderPool, query-awarePageDomCache, single-flightenforceStorageCap(),<parsererror>cache rejection, and monotonic UI sequence guards. - Parser & Selector Fixes (
src/core/base-parser.js,src/core/parser-helpers.js,src/core/selector-utils.js,src/parsers/): AddedMadaraThemeParserPOST /ajax/chapters/pre-SPA extraction, RoyalRoadexpectedFictionIdvalidation, ScribbleHub?toc=NaNguards, NovelMania<dl>& pagination cap fixes, image-only chapter support, and prefix-safe multi-digit chapter ordering (ensureAscendingChapterOrder). - UI Hygiene, Test Shims & CI Hardening: Removed emojis across docs, website, and extension UI; improved
data-i18n-aria/data-i18n-altparity; strengtheneddom-shimandidb-shimfidelity; and pinnedaddons-linter+ EPUBCheck SHA-256 verification in CI/Release workflows.
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.7.1.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Install directly from Firefox Add-ons (AMO) for signed packages and automatic updates, or download
WebPullBook-v1.7.1.zipbelow and load it viaabout:debugging#/runtime/this-firefoxfor temporary testing.
WebPullBook v1.7.0 (Beta)
WebPullBook v1.7.0 (Beta)
Firefox MV3, Localization & Store Readiness
- Manifest Localization (
_locales/): Added nativedefault_locale: "en"(en,pt_BR) manifest localization and wired CI validation (addons-linteron the release ZIP layout) in.github/workflows/ci.yml,.github/workflows/release.yml, andscripts/check.mjs. - Firefox Permissions & Image Fetching (
src/workspace/,src/core/): Added the non-intrusive Firefox MV3 host-permissions banner inworkspace.html(chrome.permissions.request), preserved FirefoxOrigin-removal rule ID1while adding temporary DNRRefererhotlink image fallback rules (120..129), extendedtoHighResCoverUrl()to stripresizeand numericw/hparameters, and DOM-mounted blob downloads for mobile/Firefox reliability.
Workspace Diagnostics, Parser Engine & Test Architecture
- Inline Test Selectors (
src/workspace/series-loader.js): Added#btn-test-selectorsand#selector-test-resultunder Advanced Options to validate CSS selectors, report matched chapters/words/images, and support cache-bypassing previews (openChapterPreviewForTarget(..., { bypassCache })) without altering saved domain rules. - Parser & Core Deduplication (
src/core/parser-helpers.js,src/core/selector-utils.js,src/parsers/): Shared URL, text-set, DOM descendant, selector-building, and inline JSON extraction helpers acrossBaseParseradapters and upgradedloadSeriesWithParser()to single-passParserRegistry.detectWithScores()scoring. - Test Split & Real Chromium E2E (
tests/): Separated core networking/rate-limiter/path tests intotests/net-fetcher.test.js,tests/rate-limiter.test.js, andtests/text-utils.test.js, introducedtests/helpers/parser-snapshot.js, and expanded Playwright E2E coverage forsourceTabIdlive DOM capture, JavaScript-hydrated SPATabRenderPoolfallback, and inline selector diagnostics.
Website, Documentation & License Migration
- Official Website & Automation (
website/,scripts/): Removed stale client-sidesyncDocsFromRepo()overrides inwebsite/assets/js/site.js, automated[data-wpb-link]store/repository links, Index JSON-LD metadata, and shallow-safesitemap.xml<lastmod>synchronization inscripts/sync-website.mjs, updated SEO & distribution guidance, pointed release notes to AMO, added Guardrails & Single Sources of Truth toAGENTS.md, and resolved CodeQL scanning alerts. - License Migration (
AGPL-3.0-or-later): Migrated WebPullBook from MIT to GNU Affero General Public License v3.0 (AGPL-3.0-or-later) starting withv1.7.0-beta(releases up tov1.6.1-betaremain historically under the MIT License).
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.7.0.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Install directly from Firefox Add-ons (AMO) for signed packages and automatic updates, or download
WebPullBook-v1.7.0.zipbelow and load it viaabout:debugging#/runtime/this-firefoxfor temporary testing.
WebPullBook v1.6.1 (Beta)
WebPullBook v1.6.1 (Beta)
UI & Cover Refinements
- Reload Cover Button (
src/workspace/cover-ui.js): Replaced the High-Res cover button with Reload Cover, which restores the original series cover after Generate Cover, Clear Cover, or a local upload (re-fetching it from the source page when needed) and automatically applies the high-resolution URL upgrade. Pasted cover URLs are also upgraded automatically. - Cover Preview Proportion: Fixed the cover preview frame to a vertical
2:3book ratio instead of a squarish box. - Cleaner Selectors: Removed flag and theme emojis from the workspace language (
Português/English) and theme selectors.
Documentation
- Added the concise
MAJOR.MINOR.PATCHversioning policy toAGENTS.mdandCONTRIBUTING.md, and recorded the Firefox for Android roadmap and Mozilla Add-ons readiness notes inCHROMEWEBSTORE.md.
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.6.1.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Download
WebPullBook-v1.6.1.zip, openabout:debugging#/runtime/this-firefox, click Load Temporary Add-on..., and select the.zipfile directly.
WebPullBook v1.6.0 (Beta)
WebPullBook v1.6.0 (Beta)
New Features & Compatibility
- NovelBin Structural Adapter (
src/parsers/novelbin.js): Added React SPA adapter with structural DOM detection, automatic direct chapter-to-index resolution, JSON-LD author and full metadata extraction, cover support, and anonymized regression fixtures (verified end-to-end across multiple works with W3C EPUBCheck). - Generic SPA Engine & Sanitizer Upgrades: Fixed
TabRenderPoolstale-URL race condition when reusing a background tab across chapters; addedwaitForSelectorand visible.skeletonchecks inwaitForDomStabilityInTab; fixedlooksLikeSpaShell()to ignore<noscript>SEO fallbacks; ignored site-brandmeta[name="author"]matchingog:site_nameinBaseParser; stripped.sr-only/.visually-hiddenelements and separator-normalized / wrapper-nested duplicate chapter headings inHtmlSanitizer.
Security, Website & Documentation
- Security Hardening & Tooling: Hardened URL and redirect validation (
resolveSafeHttpUrl,assertSafeHttpUrl,sanitizeCoverPreviewUrl), eliminated filesystem TOCTOU patterns, enabled CodeQLsecurity-and-qualityscanning, updated.github/SECURITY.mdand.github/CODE_OF_CONDUCT.md, and upgraded GitHub Actions workflow dependencies. - Official Website & Bilingual Documentation: Added a 5-theme selector, mobile single-row header down to 360px, automated
scripts/sync-website.mjssynchronization, privacy-friendly GoatCounter analytics, English-default release/repository documentation with organizeddocs/pt/Portuguese mirrors, expandedCONTRIBUTING.md, and narrowed GitHub Pages deploy triggers.
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.6.0.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Download
WebPullBook-v1.6.0.zip, openabout:debugging#/runtime/this-firefox, click Load Temporary Add-on..., and select the.zipfile directly.
WebPullBook v1.5.0 (Beta)
WebPullBook v1.5.0 (Beta)
New Features & Fixes
- Automatic Default Cover with Logo (
src/workspace/cover-ui.js): When a source page has no detectable cover image (or when creating a book via Merge Tabs or after a remote cover load failure), WebPullBook automatically generates and applies a default cover featuring the official project emblem, book title, and author (also available manually via Generate Cover). - End-of-Book Page (
OEBPS/text/end.xhtml— Closing / Colophon): Configurable closing page under Advanced Options → Files & EPUB Standard (supporting custom heading, multi-line closing message, book summary, source URL link, and credits/generation date); the Table of Contents (nav.xhtml/text/toc.xhtml) always remains at the start of the book when enabled. - Volume & Chapter Multi-Selection (
Ctrl+Click&Shift+Click): Added toggling behavior to Select All on Volumes,Ctrl+Clickindividual toggles andShift+Clickrange selection directly on volume chips and chapter rows, plus normalization of generic chapter headings ("Capítulos","Chapters","Sumário") toVolume 01. - Per-Domain CSS Selector Isolation: CSS selectors and regex strip filters (
customListSelector,customContentSelector,customExcludeSelector,customStripPatterns) are no longer persisted globally inwpbOptions(staying scoped to the active site session or saved Domain Rules), with automatic fallback inBaseParserto native adapter extraction when a stale custom selector matches zero chapters. - Centralized Manual Latency in Advanced Options: Manual delay between chapters (
0–30000 ms, adjustable live and independent from Safe Mode) consolidated under Advanced Options → Network, SPA & Resilience. - Official Website (GitHub Pages), Documentation & Security Tooling: Static bilingual website under
website/synced automatically from repository documentation,AGENTS.md,CHROMEWEBSTORE.md, GitHub Pages workflow (pages.yml), CodeQLsecurity-and-qualityscanning (codeql.yml), and Dependabot monitoring (dependabot.yml), alongside URL protocol hardening (resolveSafeHttpUrl,assertSafeHttpUrl,sanitizeCoverPreviewUrl) and Web Crypto UUID generation.
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.5.0.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Download
WebPullBook-v1.5.0.zip, openabout:debugging#/runtime/this-firefox, click Load Temporary Add-on..., and select the.zipfile directly.
WebPullBook v1.4.0 (Beta)
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 DefaultaboveCustom). Reference guide available indocs/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) viaservice-worker.js+PageDomCache, avoiding coldfetch()calls on SPAs and authenticated sessions. - Resilient Image Pipeline &
[IMG]Logs: Binary magic-byte MIME sniffing (fixesoctet-streamand 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-fileresolution, 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 adjacentnextPrevUrlsremoval,__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:
AdaptiveRateLimiterwith dynamic latency/error backoff,Retry-Aftercompliance, and cooperative waiting; reusableTabRenderPool(1 background worker tab per queue), DOM stabilization wait, per-domain anti-bot circuit breaker, stricthttp(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 (withEditedbadge), EPUB 3 Pop-up Footnotes, andCOMPATIBILITY.mdstructured 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, withparser-engine.jsas 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 (
54unit/integration tests covering image pipeline, Adaptive Safe Mode, SPA security, generic extractor, presets, and i18n parity) plus Playwright Chromium E2E and W3CEPUBCheckin CI.
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.4.0.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Download
WebPullBook-v1.4.0.zip, openabout:debugging#/runtime/this-firefox, click Load Temporary Add-on..., and select the.zipfile directly.
WebPullBook v1.3.0 (Beta)
WebPullBook v1.3.0 (Beta)
New Features & Compatibility
- Mozilla Firefox (128+) Support: Cross-browser Manifest V3 (
background.scripts+browser_specific_settings.gecko) and automatic removal of theOrigin: moz-extension://header viadeclarativeNetRequestinservice-worker.jsto avoid CORS rejections when fetching chapters and covers on Firefox. - Heuristic CSS Selector Assistant: Added Auto-detect selectors under Advanced Options, analyzing the index and sample chapter DOM (with SPA tab fallback) to suggest chapter list, content body, and exclusion selectors automatically.
- Generic Extractor & Sanitizer Improvements:
- "Innermost Node Wins" rule in
GenericHtmlParser.findChapterContentRoot()to prioritize true prose containers over outer wrappers. - Expanded
BaseParserdetection for JSON-LD metadata (genre,creativeWorkStatus),<dl>pairs (Author,Status), synopses ([data-testid*="synopsis"],[itemprop="description"]),<time>stripping from chapter titles,.sr-onlycleanup inside<h1>, and volume inference from ancestor headings. - Selective preservation of intra-chapter footnote anchors (
#id) inHtmlSanitizerand removal of top-level<style>hidden decoy classes.
- "Innermost Node Wins" rule in
- Verified Adapters:
- Royal Road (
royalroad.js), Novel Mania (novelmania.js), and Scribble Hub (scribblehub.js), including pagination, chronological ordering, anti-bot challenge detection, and regression fixtures/snapshots.
- Royal Road (
UI & Accessibility
- 2-Column Layout & Accessible Tabs: Reorganized workspace into a left metadata/cover sidebar and chapter table column, renamed tabs (
Series,Library,Advanced Options,Logs), added keyboard navigation (role="tablist"/tabpanel), and improved responsiveness. - 4 Quick Color Themes: Added Sepia and Midnight alongside Light and Dark in the top bar next to the language selector.
Docs & Testing
- Updated documentation for Firefox installation, new layout/themes, adapters, and the General Compatibility First philosophy in
CONTRIBUTING.mdanddocs/COMPATIBILITY.md. - Expanded suite to
30passing tests (lint, syntax, MV3 CSP, 228-key i18n parity, adapter regressions, and Chromium/Firefox verification).
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.3.0.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Download
WebPullBook-v1.3.0.zip, openabout:debugging#/runtime/this-firefox, click Load Temporary Add-on..., and select the.zipfile directly.
WebPullBook v1.2.1 (Beta)
WebPullBook v1.2.1 (Beta)
Improvements
- Clickable URLs in Logs:
http(s)://URLs inside the Logs tab open directly in a new tab (rel="noopener noreferrer"), making it easier to inspect chapters or media URLs that failed. - Direct Links in Report & Table: Post-export report displays
Open chapter ↗andOpen image ↗per item (besidesView in log), and the chapter table displaysOpen page ↗next to warnings/errors. - Full Image Failure Context: Media failure logs record both the chapter page URL and the failing image URL.
- Automated Release Pipeline: Release notes generated automatically from
CHANGELOG.mdafter full CI validation (lint, unit tests +EPUBCheck v5.4.0, and Playwright E2E) before publishing the.zipasset.
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.2.1.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Download
WebPullBook-v1.2.1.zip, openabout:debugging#/runtime/this-firefox, click Load Temporary Add-on..., and select the.zipfile directly.
WebPullBook v1.2.0 (Beta)
WebPullBook v1.2.0 (Beta)
New Features
- Post-Export Report & Severity Separation: Summary panel below the status banner distinguishing Errors (chapters) and Warnings (images/cover) with impact descriptions, numbered list, and clickable log navigation.
- Clickable Status & Log Badges: Chapters display
Downloaded ✓/Cached ✓, image warnings (⚠ N), and clickable errors linking directly to the highlighted row in Logs (with error and warning badge counters). - Image Resilience & W3C EPUBCheck Validation: Anonymous fallback (
credentials: 'omit') onHTTP 401/403for CDNs/S3 buckets, rejection of HTML error responses disguised as images, automatic WebP/AVIF conversion for EPUB 2, Chromium XML declaration fix,toc.ncx(playOrder/DOCTYPE), andsvgmanifest property incontent.opf. - Sanitizer Hardening: Strict blocking of unsafe protocols on
<img>(javascript:,data:text/html). - Quality & CI (P0/P1/P2): Zero-dependency native
node:testsuite (23 tests), regression fixtures/snapshots (wp-lightnovel,madara-theme,generic-html), W3CEPUBCheck, and Chromium unpacked-extension E2E test via Playwright.
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.2.0.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Download
WebPullBook-v1.2.0.zip, openabout:debugging#/runtime/this-firefox, click Load Temporary Add-on..., and select the.zipfile directly.
WebPullBook v1.1.0 (Beta)
WebPullBook v1.1.0 (Beta)
- Optional Safe Mode (Anti-Throttle) + automatic rate-limit detection (
HTTP 429/503). - Auto-Expiring Persistent Cache (
IndexedDB) and session resumption in the Library tab. - CDN Proxy Image Fallback (
i0.wp.com).
Installation / Update
- Chrome / Chromium: Download
WebPullBook-v1.1.0.zipbelow, extract it to a folder, openchrome://extensions/with Developer mode enabled, and click Load unpacked (or Reload (↻) if already installed). - Mozilla Firefox (128+): Download
WebPullBook-v1.1.0.zip, openabout:debugging#/runtime/this-firefox, click Load Temporary Add-on..., and select the.zipfile directly.