MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / tagMeowButtons

Function tagMeowButtons

demo/chat/stream-actions.ts:58–67  ·  view source on GitHub ↗
(root: HTMLElement)

Source from the content-addressed store, hash-verified

56}
57
58function tagMeowButtons(root: HTMLElement): void {
59 root.querySelectorAll<HTMLButtonElement>("button").forEach((btn) => {
60 if (btn.dataset.streamAction) {
61 return;
62 }
63 if (/meow/i.test(btn.textContent ?? "")) {
64 btn.dataset.streamAction = "meow";
65 }
66 });
67}
68
69async function runAction(
70 action: string,

Callers 1

enhanceStreamedContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected