aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/captcha.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/captcha.ts')
-rw-r--r--src/scripts/captcha.ts20
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();