* 查找全名字段
()
| 111 | * 查找全名字段 |
| 112 | */ |
| 113 | function 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 | * 查找所有匹配的字段(用于密码等需要填写多次的字段) |