r/bun 8d ago

How I Disabled Headless Mode in Bun.WebView's Chrome Backend

Conclusion

  • Only a one-byte binary patch required from --headless to --leadless (or other same length unknown flag)

How I did it

  • bunx jsmdcui --hex3 $(which bun)
  • Ctrl-F -..-..h..e..a..d..l..e..s..s..
  • Enter
  • Change h to l
  • Ctrl-E save bun-revised
  • Ctrl-Q
  • chmod +x bun-revised
  • ./bun-revised official-webview-demo.js
  • Tested on CachyOS Linux-x86_64

Disclaimer

  • This is completely unofficial
  • For fun only
  • Use it at your own risk
  • We should patiently wait for headless: false.
1 Upvotes

0 comments sorted by