MCPcopy Create free account
hub / github.com/debbide/GeoFill / findFullNameField

Function findFullNameField

scripts/content.js:113–125  ·  view source on GitHub ↗

* 查找全名字段

()

Source from the content-addressed store, hash-verified

111 * 查找全名字段
112 */
113function findFullNameField() {
114 for (const selector of FULLNAME_SELECTORS) {
115 try {
116 const element = document.querySelector(selector);
117 if (element && isVisible(element) && !element.disabled && !element.readOnly) {
118 return element;
119 }
120 } catch (e) {
121 console.log('[GeoFill] Selector error:', selector, e);
122 }
123 }
124 return null;
125}
126
127/**
128 * 查找所有匹配的字段(用于密码等需要填写多次的字段)

Callers 1

fillFormFunction · 0.85

Calls 1

isVisibleFunction · 0.85

Tested by

no test coverage detected