Skip to main content
100%

Gist 44d38c33dc9ab38f123530e4db1c49b8

✓ Published0🌍 Public
UUtopiah
Last edited Jul 3, 2020
Created on Jul 3, 2020

This example shows a live console log of participant names appearing in a Hub’s presence log, capturing each new addition with a Unix timestamp. A `MutationObserver` watches the DOM node matching `[class^=presence-log]` and, on every child-list mutation, iterates over added nodes to print `Date.now()` and the node’s text content. The code relies solely on the browser’s native `MutationObserver` API, with no external libraries or rendering. It provides a minimal, text-based trace of when users join or appear in the chat, useful for auditing participation over time.

AI-generated description

Similar vizzes