MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / search

Function search

content/utils.js:141–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 throwIfStopped();
140
141 function search() {
142 const candidates = document.querySelectorAll(containerSelector);
143 for (const el of candidates) {
144 if (textPattern.test(el.textContent)) {
145 return el;
146 }
147 }
148 return null;
149 }
150
151 const existing = search();
152 if (existing) {

Callers 1

waitForElementByTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected