aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/autofill-captcha.ts
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-03-23 14:26:18 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2023-03-23 14:26:18 +0530
commit3b29d138bee5e98c9536d3606de3e4b5378338f0 (patch)
treebaddef6b68e970e54404cbfa694811b2aecb8bd1 /src/scripts/autofill-captcha.ts
parentb7b840319aaf37cd48461e7a578cc859454a29e3 (diff)
downloadbanglar-bhumi-utils-3b29d138bee5e98c9536d3606de3e4b5378338f0.tar.gz
banglar-bhumi-utils-3b29d138bee5e98c9536d3606de3e4b5378338f0.zip
Some minor changes.
Diffstat (limited to 'src/scripts/autofill-captcha.ts')
-rw-r--r--src/scripts/autofill-captcha.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/scripts/autofill-captcha.ts b/src/scripts/autofill-captcha.ts
index 8caac1c..f290fda 100644
--- a/src/scripts/autofill-captcha.ts
+++ b/src/scripts/autofill-captcha.ts
@@ -1,4 +1,4 @@
-setInterval(() => {
+const autofillCaptcha = () => {
let captchas = Array.from(document.querySelectorAll("#txtCaptcha")) as HTMLInputElement[];
for (const captcha of captchas) {
@@ -21,4 +21,8 @@ setInterval(() => {
}
}
}
-}, 5000);
+
+ setTimeout(autofillCaptcha, 1000);
+};
+
+autofillCaptcha();