From: Chris Duncan Date: Thu, 13 Mar 2025 16:31:26 +0000 (-0700) Subject: At just 2.8 KiB, the Terms page is the most lightweight chrome:// URL, so use it... X-Git-Tag: v3.1.0~3 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=a2e9347441ab6e8a9971369905db7eb7e6b56dbe;p=nano-pow.git At just 2.8 KiB, the Terms page is the most lightweight chrome:// URL, so use it for CLI instead of chrome://newtab which is over 25 times larger at 74.0 KiB. --- diff --git a/cli.js b/cli.js index b7b8431..d066556 100755 --- a/cli.js +++ b/cli.js @@ -96,7 +96,7 @@ if (options['debug']) console.log(`${fn} options`, JSON.stringify(options)) }) const page = await browser.newPage() await page.setBypassCSP(true) - await page.goto('chrome://newtab') + await page.goto('chrome://terms') page.on('console', async (msg) => { const output = msg.text().split(' ') if (output[0] === 'cli') {