This page is Kid-Mode Backfill. It is a report about putting a Kid mode button on every page of Brandon's website, and how the pages were rescued after the computer ran out of room to save them.
drwu-htmls · site-wide audit
Every published page now carries the kid-mode toggle. This is the record of the audit, a disk-space incident and its full recovery, and two root-cause fixes to the house injector. 2026-06-20.
Counts are honest about the false positive: a raw grep for the word toggleKid matched 50 pages, but one of them (fix-plan) only mentioned the word in prose and had no real button, so the true split is 49 had it / 265 needed it. A 315th page appeared mid-run when the boards generator rebuilt; it already shipped with the button.
Phase 1, Audit. Enumerated every public/*/index.html and grepped for the marker. 264 had no marker at all, plus 1 prose false positive.
Phase 2, Inject. Ran the idempotent house injector scripts/add_kid_mode.py per file. It writes a tailored kid explainer from each page's <h1> or <title>.
Phase 3, Deploy & verify. Pushed with the canonical lean REST deployer, then curled a 15-page sample for HTTP 200 and a single working button.
Mid-run, the data volume hit no space left on device. Python's write_text truncates a file to zero before writing, so a failed write left 17 pages at 0 bytes. Here is the whole arc, start to finish.
write_text; a re-audit found 17 zero-byte pages.public/.One page (buried-treasures, 690 KB) is minimal HTML5 tag-soup with no <body>, <html>, or </head>. The injector used to hard-error there. It now anchors the button and panel after the head-ish prefix (</style>, </title>, <meta>, <!doctype>) and appends the script at the end.
The skip check was the bare word toggleKid, which any page could carry in prose. The fix-plan page did exactly that and was wrongly treated as already-done. The key is now the real injected markers, id="mode-btn" and id="kidmode-js", so prose can no longer cause a false skip. Verified safe: every other page already carries id="mode-btn", so only fix-plan re-injected.
A loose grep for id="mode-btn" first flagged 46 pages as having two buttons. On inspection that was a false alarm. Every page has exactly one real button element. The second match was always inert: a documentation comment, a CSS selector, a getElementById call, or prose like this report. An element-aware regex confirmed zero pages carry two real buttons. The pages that already had kid-mode use a richer generator-built toggle, the backfilled pages use the injector's simpler one, and both satisfy the gate.
Live sample from drwu-htmls.vercel.app, covering a normal patch, restored-then-patched pages, the body-less fix, and the false-positive fix.
| Page | Kind | HTTP | Button |
|---|---|---|---|
| believeyoume | normal patch | 200 | 1 |
| phish-tweezer-jam-ixi | restored + patched | 200 | 1 |
| the-mutiny-midi-fix | restored + patched | 200 | 1 |
| straykids-key-match | restored + patched | 200 | 1 |
| reddit-parallel-research | restored + patched (2.3 MB) | 200 | 1 |
| buried-treasures | body-less, root-cause fix | 200 | 1 |
| fix-plan | false-positive fix | 200 | 1 |
14 of 14 patched pages in the sample returned 200 with exactly one working button (function present, panel present).
drwu-htmls.vercel.app · kid-mode backfill · 2026-06-20