Can you help me port my .js code above to the new method? I have a lot of nice args and tbh 6000 kbps is too low for default
kineticman/ESPN4CC4C/blob/main/contrib/cc4c/CC4C_Fullscreen_Helper_Manual_Install_Guide.md
# CC4C Fullscreen Helper (main.js) — Manual Install Guide
This adds a **per-request fullscreen fallback** to Chrome Capture (CC4C). When you open
`/stream?url=...`, the helper arms a timer; if the target site hasn’t entered fullscreen
by the deadline, it **sends the `f` key via xdotool**.
> **Persistence note:** If you recreate the container (pull/compose), you must re-copy `main.js`.
> Keep your patched file in your repo so it’s easy to re-apply.
---
## 1) Prerequisites
- Running `cc4c` container (image `bnhf/cc4c:latest`)
- Patched file saved on the host, e.g.:
`contrib/cc4c/main.cc4c-autofs.20251030-222408.js`
(and optional checksum: `contrib/cc4c/main.cc4c-autofs.20251030-222408.js.sha256`)
## 2) Backup the container’s current file
```bash
docker exec -it cc4c sh -lc 'cp -n /home/chrome/main.js /home/chrome/main.js.bak.$(date +%Y%m%d-%H%M%S)'
This file has been truncated. show original
