MCPcopy Create free account
hub / github.com/QLHazyCoder/FlowPilot / findResendVerificationCodeTrigger

Function findResendVerificationCodeTrigger

content/signup-page.js:176–192  ·  view source on GitHub ↗
({ allowDisabled = false } = {})

Source from the content-addressed store, hash-verified

174}
175
176function findResendVerificationCodeTrigger({ allowDisabled = false } = {}) {
177 const candidates = document.querySelectorAll(
178 'button, a, [role="button"], [role="link"], input[type="button"], input[type="submit"]'
179 );
180
181 for (const el of candidates) {
182 if (!isVisibleElement(el)) continue;
183 if (!allowDisabled && !isActionEnabled(el)) continue;
184
185 const text = getActionText(el);
186 if (text && RESEND_VERIFICATION_CODE_PATTERN.test(text)) {
187 return el;
188 }
189 }
190
191 return null;
192}
193
194function isEmailVerificationPage() {
195 return /\/email-verification(?:[/?#]|$)/i.test(location.pathname || '');

Callers 2

resendVerificationCodeFunction · 0.85

Calls 3

isActionEnabledFunction · 0.85
isVisibleElementFunction · 0.70
getActionTextFunction · 0.70

Tested by

no test coverage detected