code wiki / _hdl_build / nx_domseed_test.nx

nx_domseed_test.nx

buildroot/runtime/_hdl_build/nx_domseed_test.nx

1166 B18 linesdepth 9pulls 27 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_domseed_test.nx -- controlled proof that the sniff now seeds the page HTML as the DOM: an element carries a data-* stream URL; inline JS reads it via document.getElementById(...).getAttribute(...) and fetch()es it. If the DOM seed works, getElementById resolves the element, getAttribute returns the m3u8, fetch registers it, and the harvest surfaces ROUTE=hls. If the DOM is NOT seeded, getElementById returns null -> TypeError -> ROUTE=none.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_video_sniff.nx nx_domseed_test.nx

imports: nx_syscalls.nxnx_video_sniff.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

8func cw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
calls 1: sys_write
9func tslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
11func main() -> i64