code wiki / _hdl_build / nx_vk_js.nx
nx_vk_js.nx
buildroot/runtime/_hdl_build/nx_vk_js.nx
about
nx_vk_js.nx -- structural probe of a VK video page to decide the extraction path. VK's stream is NOT in the
static HTML (native classifier conf=0) but al_video.php (its AJAX video API) appears -> the page either (a)
embeds initial player state in an INLINE script we can run/parse (like YouTube's ytInitialPlayerResponse), or
(b) is a pure JS shell whose EXTERNAL bundle fetches al_video.php at runtime. This dumps inline-script size +
the al_video.php call context + stream markers so we know which. Honest probe, no download.
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_video_sniff.nxnx_video_sniff_fetch.nxnx_surrogate.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const K_MAGIC_4194304: i64 = 4194304 |
| 13 | const K_MAGIC_8388608: i64 = 8388608 |
| 14 | const K_MAGIC_65536: i64 = 65536 |
| 15 | const K_MAGIC_16384: i64 = 16384 |
| 16 | const K_MAGIC_4096: i64 = 4096 |
functions
| 18 | func pw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 19 | func pn(v: i64) -> i64 { let b: *u8=sys_mmap(24); var m: i64=v; if m<0{pw("-" as *u8);m=0-m} let t: *u8=sys_mmap(24); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 } |
| 20 | func plen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 21 | func ci_eq(src: *u8, at: i64, n: i64, pat: *u8, pl: i64) -> i64 |
| 27 | func find_ci(src: *u8, n: i64, pat: *u8, from: i64) -> i64 |
| 33 | func count_ci(src: *u8, n: i64, pat: *u8) -> i64 |
| 41 | func dump(src: *u8, off: i64, n: i64, total: i64) -> i64 |
| 47 | func main(argc: i64, argv: *i64) -> i64 |