# Banglar Bhumi Utils A Chrome extension that enhances the functionality of the [banglarbhumi.gov.in](https://banglarbhumi.gov.in) website. ## Features ### Automatic CAPTCHA Handling - [Know Your Property Page](https://banglarbhumi.gov.in/BanglarBhumi/KnowYourProperty.action) - Hides CAPTCHA section and stubs validation to allow proceeding without solving CAPTCHA - [Application Receipt Page](https://banglarbhumi.gov.in/BanglarBhumi/Apprecrep.action) - Hides CAPTCHA section and stubs form validation to bypass CAPTCHA requirement ### Front-end Optimizations - **Stop Blocking** (Global) - Disables website's copy/paste/right-click blocking by proxying jQuery's `.bind()` and `.keydown()` methods, and re-enables context menu - **Login Form Caching** (Global) - Caches login area HTML to avoid re-fetching on subsequent `viewLoginAreaAction` requests ### PDF Download Functionality - [Know Your Property Page](https://banglarbhumi.gov.in/BanglarBhumi/KnowYourProperty.action) - Adds "Download PDF" button after successful khatian/plot details fetch - Downloads khatian details or plot information as formatted PDF with district/block/mouza context - Handles both khatian ([khDetailsAction_LandInfo.action](https://banglarbhumi.gov.in/BanglarBhumi/khDetailsAction_LandInfo.action)) and plot ([plotDetailsAction_LandInfo.action](https://banglarbhumi.gov.in/BanglarBhumi/plotDetailsAction_LandInfo.action)) detail views - [Mutation Application Page](https://banglarbhumi.gov.in/BanglarBhumi/MuteApplication.action) - Replaces form submit with custom handler - Fetches declaration PDF from server, overlays Sangha Facilitation Centre banner image and date stamp on last page - Triggers download as "Declaration.pdf" - [Sheet Map Page](https://banglarbhumi.gov.in/BanglarBhumi/SheetMapViewAction.action) - Adds two toolbar buttons: "SAVE PDF" and "SAVE PDF (NO LABEL)" - Fetches and renders map layer data (plot polygons) and centroid data (plot number labels) - "SAVE PDF" includes plot number labels on map - "SAVE PDF (NO LABEL)" exports map without labels - Click-to-highlight plot polygons on SVG map with area/plot number info panel - Search by plot number to display specific plot information ## Demo ![Demo](https://github.com/user-attachments/assets/deb2d95c-9e19-426c-ae4d-270b99543e3e) ## How to Build ### Requirements - Node.js (>= 22) - NPM ### Building ```sh git clone https://github.com/arpitchakladar/banglar-bhumi-utils cd banglar-bhumi-utils npm install npm run build ```