Job Card Re-issuance — bulk auto-processor
Instead of ticking checkboxes, clicking Update and OK hundreds of times, run one small script and let it work through every page, village and panchayat on its own. No install — it runs on the portal page itself.
- Bulk mark records
- Every village & panchayat
- Safe to re-run
- Free
What it does
For each panchayat you choose, it:
- Opens each village in turn.
- Ticks all the checkboxes on the page.
- Clicks Update and waits for “Valid Record(s) updated successfully !!”
- Moves to the next batch of records.
- Repeats until that village has nothing left, then checks it again to be sure.
- Moves to the next village, then the next panchayat.
At the end it tells you how many records were marked and how long it took.
What you need
- Google Chrome on a computer (not a phone).
- Your portal login.
- To be in India — the portal blocks other countries.
- 30–60 minutes, depending on how many records you have.
Quick start
- Log in and open the Job Card Re-issuance page. Pick your district and block so the panchayat dropdown fills up.
- Press F12 → Sources tab → click Deactivate breakpoints
(the flag-with-a-slash icon). Don't skip this — the portal has
debuggerstatements that will freeze the page. - Sources → Snippets → + New snippet → name it
vbgramg. - Paste all of
auto.js, then Ctrl+S to save. - Ctrl+Enter to run.
- A box asks which panchayats — type
ALLor a number like7. - Leave the tab open and visible. Don't click on the page.
Choosing panchayats
| You type | What happens |
|---|---|
ALL or blank | Every panchayat |
7 | Only panchayat number 7 |
1,4,9 | Those three |
2-6 | Panchayats 2 through 6 |
somaspur | Anything with that name — matches SOMASPUR-I and SOMASPUR-II |
1,5-8,gurap | Mix and match |
Useful for resuming: if you finished 1–8 yesterday, type 9-18 today.
Is it safe to run twice?
Yes. Records that are already marked don't come back in the list, so re-running only picks up whatever is left. If a run gets interrupted, just run it again.
Troubleshooting
| What you see | What to do |
|---|---|
| Paused in debugger | You skipped the breakpoints step. Press F8, then deactivate breakpoints and re-run. |
panchayat dropdown not found | You're on the wrong page. Open the Job Card Re-issuance page first. |
caller, callee, and arguments… | You pasted into Console instead of Snippets. Use a Snippet. |
| Nothing happens | Check the Console tab for red text. Refresh the page and try again. |
village stuck on … | The portal didn't switch. The script skips it and carries on — re-run that panchayat afterwards. |
sweep limit hit | Check that village by hand; something unusual happened. |
| Logged out mid-run | Log in again, reopen the page, re-run. Finished work is saved. |
How it works (for the curious)
The portal is ASP.NET WebForms with UpdatePanel partial refreshes. Three things make automating it awkward, and the script handles each:
- Chrome Snippets run in strict mode, but ASP.NET's
__doPostBackinspectsarguments.callee.caller, which throws if a strict frame is on the stack. The script fires postbacks viasetTimeout("__doPostBack(...)", 0)so they run on an empty, non-strict stack. - Knowing when a refresh finished — it hooks
beginRequest/endRequestand counts completed postbacks, then waits for the counter to pass a value taken before the click. - The pager shifts under you — marked records leave the grid, so it fingerprints the grid before each save and only advances the pager when the rows didn't change.
Not affiliated with, endorsed by, or connected to NIC or the Ministry of Rural Development. An automation helper for work you are already authorised to do on the VBG-RAM-G portal.