#!/bin/bash cd "$( dirname "${BASH_SOURCE[0]}" )" node -e "\ const p = require('puppeteer');\ p.connect({browserURL: 'http://127.0.0.1:9222'}) .catch(() => p.launch({\ args: [\ '--remote-debugging-port=9222',\ '--no-sandbox',\ '--disable-setuid-sandbox',\ '--disable-dev-shm-usage',\ '--disable-accelerated-2d-canvas',\ '--no-first-run',\ '--no-zygote',\ '--single-process',\ ...process.argv.slice(1)],\ }))" -- "$@"