aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/autofill-captcha.ts8
-rw-r--r--src/scripts/autofill-otps/grievance-application.ts (renamed from src/scripts/autofill-otps.ts)0
-rw-r--r--src/scripts/show-plot-information.ts11
3 files changed, 17 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();
diff --git a/src/scripts/autofill-otps.ts b/src/scripts/autofill-otps/grievance-application.ts
index 140504c..140504c 100644
--- a/src/scripts/autofill-otps.ts
+++ b/src/scripts/autofill-otps/grievance-application.ts
diff --git a/src/scripts/show-plot-information.ts b/src/scripts/show-plot-information.ts
new file mode 100644
index 0000000..aec56d6
--- /dev/null
+++ b/src/scripts/show-plot-information.ts
@@ -0,0 +1,11 @@
+declare function loadKhatian(): void;
+
+document.addEventListener("DOMContentLoaded", () => {
+ (window as any).customLoadKhatian = () => {
+ loadKhatian();
+ setTimeout(() => {
+ (document.querySelector("#khdetails > table > tbody > tr > td:nth-child(1) > div:nth-child(5) > table > tbody") as any).style.height = "auto";
+ }, 1000);
+ };
+ document.querySelector("#khbutton")!.setAttribute("onclick", "customLoadKhatian()");
+});