// node og.mjs : the share image, 1200x630, with First Commit playing and the deck tilted toward the pointer. import { chromium } from "/Users/natebutler/code/stylize/node_modules/playwright/index.mjs"; const [url, out] = process.argv.slice(2); const b = await chromium.launch({ channel: "chrome", args: ["--autoplay-policy=no-user-gesture-required"] }); const p = await b.newPage({ viewport: { width: 1440, height: 756 }, deviceScaleFactor: 1200 / 1440 }); await p.goto(url, { waitUntil: "networkidle" }); await p.click(".key.play"); await p.mouse.move(1060, 230, { steps: 20 }); await p.waitForTimeout(9000); await p.screenshot({ path: out }); await b.close();