diff options
Diffstat (limited to 'src/scripts/captcha.ts')
| -rw-r--r-- | src/scripts/captcha.ts | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/scripts/captcha.ts b/src/scripts/captcha.ts deleted file mode 100644 index 453443c..0000000 --- a/src/scripts/captcha.ts +++ /dev/null @@ -1,20 +0,0 @@ -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"; - } - } - } - - setTimeout(autofillCaptcha, 1000); -}; - -autofillCaptcha(); |
