YouTube Chat Overlay (Lua Script)
A lightweight OBS Studio Lua script that automatically embeds your YouTube Live Chat as a clean, customizable Browser Source no third-party websites or applications needed.
Features
✅ Creates or updates a Browser Source named “YouTube Chat Overlay”
✅ Automatically loads your YouTube pop-out chat using your live Video ID
✅ Transparent background for seamless stream overlays
✅ Option to hide YouTube’s UI chrome (header, input box, etc.)
✅ Option to hide scrollbars or lock scrolling entirely
✅ Custom CSS field to restyle chat freely
✅ No external dependencies pure Lua, works inside OBS
How It Works
YouTube’s live chat can be embedded via the pop-out URL format:
This script creates or updates an OBS **Browser Source** with that URL, using your provided Video ID. You can style it with your own CSS or keep the defaults for a clean, minimalist overlay.
If this script helps your stream, you can support development on Ko‑fi: https://ko-fi.com/mmltech