code wiki / _hdl_build / nx_domseed_test.nx
nx_domseed_test.nx
buildroot/runtime/_hdl_build/nx_domseed_test.nx
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
imports: nx_syscalls.nxnx_video_sniff.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| none |
functions
| 8 | func 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 |
| 9 | func tslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 11 | func main() -> i64 |