diff options
Diffstat (limited to 'src/scripts/captcha.ts')
| -rw-r--r-- | src/scripts/captcha.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scripts/captcha.ts b/src/scripts/captcha.ts index 0eb36c9..453443c 100644 --- a/src/scripts/captcha.ts +++ b/src/scripts/captcha.ts @@ -1,9 +1,12 @@ const autofillCaptcha = () => { const captchas = Array.from(document.querySelectorAll("#captchaText")) as HTMLInputElement[]; + for (const captcha of captchas) { const captchaParentElement = captcha.parentElement!; + if (captchaParentElement.id === "drawTextSpan") { const captchaInput = captchaParentElement.parentElement!.querySelector("#drawText1") as HTMLInputElement | null; + if (captchaInput) { captchaInput.value = captcha.value.replaceAll(" ", ""); captchaParentElement.parentElement!.style.display = "none"; |
