session_preload
Replace the session's document-start preload group (empty array clears). Sources run before each new document's own scripts — including inline tags — which is the only hook that beats pages whose signing layer captures window.fetch/XHR natives at parse time (xhs's inline jsvmp). Set before the first navigate; applies to every navigation from then on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipe | No | Builtin recipe name appended after `scripts` (e.g. "xhs-sign"): the maintained document-start wrapper for that site — same source the engine auto-mounts on its navigations, without pasting JS. Unknown names are an error, not a silent no-op. | |
| scripts | No | Full JS sources, in order. Sources run before each new document's own scripts (including inline ones) — the only hook that beats pages whose signing layer captures window.fetch/XHR natives at parse time. `[]` clears the group. Set before the session's first navigate and it applies to every navigation from then on. | |
| session_id | Yes | Session ID |