chromium 545 B

1234567891011121314151617
  1. #!/bin/bash
  2. cd "$( dirname "${BASH_SOURCE[0]}" )"
  3. node -e "\
  4. const p = require('puppeteer');\
  5. p.connect({browserURL: 'http://127.0.0.1:9222'})
  6. .catch(() => p.launch({\
  7. args: [\
  8. '--remote-debugging-port=9222',\
  9. '--no-sandbox',\
  10. '--disable-setuid-sandbox',\
  11. '--disable-dev-shm-usage',\
  12. '--disable-accelerated-2d-canvas',\
  13. '--no-first-run',\
  14. '--no-zygote',\
  15. '--single-process',\
  16. ...process.argv.slice(1)],\
  17. }))" -- "$@"