Files
ejs/src/yt/solver/setup.ts
2025-09-27 17:56:19 +02:00

10 lines
305 B
TypeScript

import { parse } from "meriyah";
export const setupNodes = parse(`
globalThis.XMLHttpRequest = { prototype: {} };
const window = Object.assign(Object.create(null), globalThis);
window.location = new URL("https://www.youtube.com/watch?v=yt-dlp-wins");
const document = {};
let self = globalThis;
`).body;