What this does
On the portal you normally tick 10 checkboxes, click Update, click OK on the popup — then do it all again for the next page, the next village, and the next panchayat. Hundreds of times.
This script does that clicking for you. You start it once and walk away.
Nothing is bypassed or changed. It does not touch your login, skip validation, or reach any data you can't already see. It is your own browser pressing the same buttons, faster.
Before you start
Make sure you have all four of these:
- Google Chrome on a laptop or desktop — this will not work on a phone or tablet
- Your portal username and password
- An internet connection in India — the portal blocks other countries
- 30–60 minutes where you can leave the computer alone
Chrome slows down tabs that aren't visible. Leave this tab on screen and untouched. You can still look at it — just don't click on the page.
The steps
Open the portal page
Log in to the VBG-RAM-G portal and go to the Job Card Re-issuance page.
Choose your State, District and Block so the Panchayat dropdown fills up with names. If that dropdown is empty, the script has nothing to work with.
Click the Panchayat dropdown. You should see a list of panchayat names.
Open developer tools
Press F12 on your keyboard.
A panel opens on the right or bottom of the window with tabs like Elements, Console, Sources. That's the right place. If F12 does nothing, try Ctrl+Shift+I.
Now click the Sources tab.
Turn off breakpoints — don't skip this
In the Sources tab, look at the top-right for a row of small icons. Click the flag icon with a line through it. Hovering it says "Deactivate breakpoints".
The portal's own code contains debugger statements. With
breakpoints active, Chrome freezes the page and shows
"Paused in debugger" — and the script cannot continue. If that
happens, press F8 to unfreeze, then do this step properly.
Create a snippet
Still in Sources, find the Snippets tab in the small left-hand panel. It sits next to Page — if you don't see it, click the » arrows to reveal more tabs.
Click + New snippet. Name it vbgramg and
press Enter.
Pasting into the Console tab causes an error about "caller, callee and arguments". Snippets are required.
Paste the script
You need the whole script on your clipboard. Either way works:
-
Use the Download button at the top of this page, then
open the saved
auto.jsin Notepad and press Ctrl+A then Ctrl+C. -
Or copy it straight from GitHub —
open
auto.jsand click the copy button in the top-right of the code box.
Then click into the big empty editor area on the right and press Ctrl+V.
Don't select the text with your mouse and risk missing the last line — use Ctrl+A or GitHub's copy button. A half-pasted script will not run.
Save it
Press Ctrl+S.
The asterisk * next to the snippet name disappears once it's
saved. You only do steps 4–6 once — next time your snippet is already
there, ready to run.
Run it
Press Ctrl+Enter.
You should see a blue VisionTech banner appear:
Bulk Job Card marking — panchayat → village → page
✓ UpdatePanel hooks installed
To watch progress, click over to the Console tab. The script keeps running while you look at it.
Pick your panchayats
A box pops up listing every panchayat with a number. Type what you want and click OK:
| Type this | And it will process |
|---|---|
ALL or leave blank | Every panchayat in the list |
7 | Only number 7 |
1,4,9 | Those three |
2-6 | Numbers 2, 3, 4, 5 and 6 |
somaspur | Any name containing it — SOMASPUR-I and SOMASPUR-II |
1,5-8,gurap | Mix numbers, ranges and names together |
Clicking Cancel stops everything without changing any data — safe if you opened it by mistake.
You don't have to do all of them at once. Finish 1-8 today
and type 9-18 tomorrow. Nothing is lost in between.
Wait for it to finish
Now leave it alone. The Console shows progress as it goes:
22 village(s)
[V1/22] Belmuri/I-1
+10 (10 total) — Valid Record(s) updated successfully !!
+10 (20 total) — Valid Record(s) updated successfully !!
⇒ 20 record(s) in 2 update(s)
↻ verifying (sweep 2)
[V2/22] Belmuri/II-2
⚠ no data / already marked
Reading that:
+10 (20 total)— 10 more records saved, 20 so far in this village↻ verifying— going back to the start to confirm nothing was missed⚠ no data / already marked— this village was already done. Normal.
When everything is done you get the green finish badge:
Panchayats : 18 of 18
Records : 4820 marked
Elapsed : 47m 12s
That's it. You can close the tab.
Open a couple of villages on the portal and confirm the records show as marked. The script reports what it did — but you own the data.
If something goes wrong
| What you see | What to do |
|---|---|
| Paused in debugger | Step 3 was skipped. Press F8 to unfreeze, deactivate breakpoints, then run again. |
caller, callee and arguments... |
You pasted into Console instead of Snippets. Redo step 4. |
panchayat dropdown not found |
Wrong page. Open the Job Card Re-issuance page and pick your district and block first. |
| Nothing happens after Ctrl+Enter | Open the Console tab and look for red text. Refresh the page (F5) and start again from step 2. |
village stuck on ... |
The portal didn't switch village. The script skips it and carries on. Re-run that panchayat afterwards to catch it. |
sweep limit hit |
Something unusual in that village — check it by hand on the portal. |
| Logged out halfway | Log in again, reopen the page, run again. Work already saved stays saved. |
| It seems stuck on one village | Villages with many records take a while. Wait 2 minutes. If the Console adds no new lines at all, refresh and re-run. |
Common questions
Can I run it twice by mistake and cause a problem?
No. Once a record is marked it drops off the portal's list, so a second run simply finds nothing to do and finishes quickly. Re-running after an interruption is the recommended fix.
Can I stop it in the middle?
Yes — just refresh the page (F5). Everything already saved stays saved, because each batch is submitted to the portal as it goes.
Does it change any data on its own?
It ticks the checkboxes and presses Update, exactly as you would. It makes no decisions about which records qualify — the portal decides what appears in the list, and the script marks what's shown.
Do I have to set it up again next time?
No. Your snippet stays saved in Chrome. Next time: open the page, deactivate breakpoints, open the snippet, press Ctrl+Enter.
Can I use Edge or Firefox?
Microsoft Edge works the same way — it uses the same developer tools. Firefox does not have Snippets in the same form, so stick to Chrome or Edge.