Live Chat on YouTube Mobile

Integrates the live chat into the mobile version of YouTube

< Opiniones de Live Chat on YouTube Mobile

Pregunta o comentario

§
Publicado: 5/10/2025

Support live chat replay?

Currently it doesn't work with ended streams. The iframe URL for example:

https://www.youtube.com/live_chat_replay?continuation=op2w0wR1Gl5DaWtxSndvWVZVTXRXVzlITVV4c2JXbHpaVzlxTW5kdk5HSTNjVWQzRWd0bllqbDJkR2xzTlVWNFVSb1Q2cWpkdVFFTkNndG5ZamwyZEdsc05VVjRVU0FCTUFBJTNEQAFaBRDozOMBcggIBBgCIAAoAHgB&dark_theme=true&authuser=0&playerOffsetMs=3709000

IDK if we will have to handle windows communication or it will work automatically after the iframe is created.

§
Publicado: 6/10/2025

It's harder to support live chat replay than live chat because replay requires an access token and the chat must be constantly synchronized with the video's timeline, which the live chat url doesn't need.

§
Publicado: 24/2/2026

I took some time to make it work with stream archive: https://github.com/eight04/bunch-of-shells/blob/master/Live%20Chat%20on%20YouTube%20Mobile.user.js

  1. To embed www.youtube.com to m.youtube.com, users have to install this addon: https://addons.mozilla.org/en-US/firefox/addon/ignore-x-frame-options-header/
  2. To load /live_chat_replay, we have to fetch www.youtube.com and extract reloadContinuationData to iframe URL.
  3. To sync the chat with the video, we have to post video.currentTime to the frame periodly.
  4. /live_chat_replay doesn't recognize message from other origins i.e. m.youtube.com, so we have to catch messages in the iframe then repost it with the correct origin.

Publicar respuesta

Inicia sesión para responder.