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.ts13
1 files changed, 13 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..e304342
--- /dev/null
+++ b/src/scripts/pages/know-your-property/captcha.ts
@@ -0,0 +1,13 @@
+/**
+ * Hides the CAPTCHA section on the Know-Your-Property page and
+ * stubs the captcha validation so the user can proceed without
+ * solving a CAPTCHA.
+ */
+type WindowKnowYourProperty = {
+ validateCaptcha?: () => boolean
+} & Window;
+
+document.addEventListener("DOMContentLoaded", () => {
+ $("#khatianPlotDiv > div:nth-child(6) > div").hide();
+ (window as WindowKnowYourProperty).validateCaptcha = () => true;
+});