aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pages/know-your-property/captcha.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/pages/know-your-property/captcha.ts')
-rw-r--r--src/scripts/pages/know-your-property/captcha.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/scripts/pages/know-your-property/captcha.ts b/src/scripts/pages/know-your-property/captcha.ts
new file mode 100644
index 0000000..3abdf08
--- /dev/null
+++ b/src/scripts/pages/know-your-property/captcha.ts
@@ -0,0 +1,9 @@
+/**
+ * Hides the CAPTCHA section on the Know-Your-Property page and
+ * stubs the captcha validation so the user can proceed without
+ * solving a CAPTCHA.
+ */
+document.addEventListener("DOMContentLoaded", () => {
+ $("#khatianPlotDiv > div:nth-child(6) > div").hide();
+ (window as any).validateCaptcha = () => true;
+});