tiennm99 2855ce5e53 fix: drop sponsor, watermark and navigation blocks from chapter text
Three blocks the site injects inside the chapter body were being extracted
as prose: the sponsor block, a source watermark planted mid-chapter, and
the prev/next chapter links.

Anchors and images are now skipped, since inside a chapter body they are
always site chrome, and the sponsor wrapper and watermark are skipped by
class. Inline emphasis tags are left alone so italics in the prose survive.

The sponsor wrapper has a sibling that must NOT be skipped: on most
chapters the real text sits in a container hidden with display:none,
because the body is gated behind a click on the sponsor link and revealed
with JavaScript. Skipping hidden elements, or treating the two sibling
classes as one family, discards the entire chapter. A test pins the gated
body as kept while its sibling is dropped.

Removes 662 words of injected text across the sample novel and lets the
repeated chapter-number paragraph be recognised again, which the sponsor
block had been masking by displacing it from the top of the body.
2026-07-29 22:36:15 +07:00
2025-07-20 18:59:06 +07:00
2020-03-02 14:53:23 +07:00
2025-11-30 20:22:58 +07:00
2024-05-22 21:04:10 +07:00
2025-03-25 19:01:31 +07:00
S
Description
Personal toolbox — utility scripts and small CLI tools (shell/batch, Go, Python, Node.js), merged from standalone repos with full history
16 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 75%
Python 22.9%
Shell 0.8%
JavaScript 0.7%
Dockerfile 0.4%
Other 0.2%