Download source/scripts/phone-eval.mjs from WilburDev/earshelf: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/WilburDev/earshelf/resolve/main/source/scripts/phone-eval.mjs
- Command line
-
hf download hf://spaces/WilburDev/earshelf/source/scripts/phone-eval.mjs
-
curl -L -o phone-eval.mjs https://huggingface.co/spaces/WilburDev/earshelf/resolve/main/source/scripts/phone-eval.mjs
319 Bytes
| import { chromium } from '@playwright/test'; | |
| const b = await chromium.connectOverCDP('http://localhost:9333'); | |
| const p = b.contexts()[0].pages().find((x) => x.url().startsWith('http://localhost:4175')); | |
| console.log(await p.evaluate(new Function('return (' + process.argv[2] + ')()'))); | |
| await b.close().catch(() => {}); | |