code wiki / (root) / nx_yt_basejs.nx

nx_yt_basejs.nx

buildroot/runtime/nx_yt_basejs.nx

4953 B111 linesdepth 3pulls 3 transitivereach 27 importersview sourcekind librarytopic yt
docsdependenciesstructsconstsfunctions

about

nx_yt_basejs.nx -- NATIVE (no JS engine) name-finder for YouTube's base.js n-throttle function. This is the fragile arms-race parse yt-dlp needs, done in NishiLang: locate the n-function's NAME from the player code so nx_yt_nsolve can then RUN it (that run is the last-mile JS; THIS locate is native text analysis). Real shape, minified: `...a.get("n"))&&(b=Wma[0](b)...` where the function is referenced through an ARRAY (`Wma[0]`) whose element list is defined elsewhere (`var Wma=[Xdec,Yfoo]`), OR referenced directly (`&&(c=lha(c)`). Layered so a shape change that breaks one pattern still resolves via another -- and a total miss is a LEARN signal for the self-heal table (name-location is itself a learnable pattern). license_tier: ORIGINAL

dependencies 2 imports · 2 importers

nx_syscalls.nx nx_media_signal.nx nx_yt_basejs.nx nx_video_sniff.nx nx_yt_basejs_gate.nx

imports: nx_syscalls.nxnx_media_signal.nx

imported by: nx_video_sniff.nxnx_yt_basejs_gate.nx

structs

none

consts

none

functions

12func bjs_identc(c: i64) -> i64
21func bjs_read_ident(js: *u8, jl: i64, from: i64, out: *u8, cap: i64) -> i64
35func bjs_resolve_array_elem(js: *u8, jl: i64, arrname: *u8, arrnamelen: i64, idx: i64, out: *u8, cap: i64) -> i64
68func bjs_find_nfunc_name(js: *u8, jl: i64, out: *u8, cap: i64) -> i64