diff options
Diffstat (limited to 'src/scripts/autofill-captcha.ts')
| -rw-r--r-- | src/scripts/autofill-captcha.ts | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/scripts/autofill-captcha.ts b/src/scripts/autofill-captcha.ts deleted file mode 100644 index f290fda..0000000 --- a/src/scripts/autofill-captcha.ts +++ /dev/null @@ -1,28 +0,0 @@ -const autofillCaptcha = () => { - let captchas = Array.from(document.querySelectorAll("#txtCaptcha")) as HTMLInputElement[]; - - for (const captcha of captchas) { - const captchaInput = captcha.parentElement!.querySelector("#txtInput") as HTMLInputElement | null; - if (captchaInput) { - captchaInput.value = captcha.value.replaceAll(" ", ""); - captchaInput.style.display = "none"; - captcha.style.display = "none"; - } - } - - 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(); |
