(root: HTMLElement)
| 56 | } |
| 57 | |
| 58 | function 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 | |
| 69 | async function runAction( |
| 70 | action: string, |
no outgoing calls
no test coverage detected