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

Function findCodexOAuthHeader

content/vps-panel.js:577–584  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

575}
576
577function findCodexOAuthHeader() {
578 const candidates = document.querySelectorAll('.card-header, [class*="cardHeader"], .card, [class*="card"]');
579 return Array.from(candidates).find((el) => {
580 if (!isVisibleElement(el)) return false;
581 const text = (el.textContent || '').toLowerCase();
582 return text.includes('codex') && text.includes('oauth');
583 }) || null;
584}
585
586function findOAuthCardLoginButton(header) {
587 const card = header?.closest('.card, [class*="card"]') || header?.parentElement || document;

Callers 2

getVpsPanelSnapshotFunction · 0.85

Calls 1

isVisibleElementFunction · 0.70

Tested by

no test coverage detected