aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scripts.json7
-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
4 files changed, 21 insertions, 5 deletions
diff --git a/src/scripts.json b/src/scripts.json
index c2ccf24..f5611fe 100644
--- a/src/scripts.json
+++ b/src/scripts.json
@@ -5,12 +5,13 @@
},
"injected": {
"stop-blocking.js": "*",
- "autofill-otps.ts": "*",
- "auto-login.ts": "*"
+ "auto-login.ts": "*",
+ "autofill-otps/grievance-application.ts": "GrievAppViewAction.action",
+ "show-plot-information.ts": "KnowYourProperty.action"
},
"loaded": {
"autofill-captcha.ts": "*",
"optimize/home-page/styles.ts": "Home",
- "fix-application-receipt.ts": "Apprecrep"
+ "fix-application-receipt.ts": "Apprecrep.action"
}
}
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()");
+});