Quick Passenger Autofill for DSS Govt. Ferry Booking
Here is a trick I learned while booking the govt ferry for local island transfers.
New booking slots typically open on Friday around 9 AM for the following week, and only limited seats are released online on popular routes like Vijayapuram ↔ Swaraj Dweep / Shaheed Dweep. So you need to be quick to secure your preferred ferry.
The most time consuming part of the booking process is filling passenger details with government ID. The DSS portal does not save passenger profiles, so every booking requires manually entering names, age, gender, and long ID numbers again and again. This becomes painful when booking for families or multiple passengers.
With the help of AI, I created a small script that autofills passenger details in one click.
This uses something called a bookmarklet. A bookmarklet is a small piece of JavaScript saved as a browser bookmark. Instead of storing a website URL, the bookmark stores JavaScript. When you click it, it runs on the current page and automates repetitive actions like filling forms.
How to use:
- Create a bookmark for any page (example: google.com)
- Right-click the bookmark and choose Edit
- Replace the bookmark URL with the bookmarklet code
- Open the DSS booking portal https://dss.andamannicobar.gov.in/ShipETicketingWeb/Login.jsp
- Log in
- Select source, destination, travel date, and your ferry
- Click Book to reach the passenger details page
- Click the bookmark
What to edit in the script:
Update the passengers array with your details:
- name → Full name
- age → Age in years
- gender → M or F
- category → NI for Non-Islander
- id → Government ID number
You can add up to 5 passengers.
The script automatically adds passenger rows and fills the main fields.
Sub category and concession fields are dynamic and are not filled by the script. Fill them manually after running it. Do not forget to select senior citizen concession if a passenger is above 60.
As far as I know, this does not break any rules. It simply automates form filling and does not bypass any booking steps
Edit the passengar details and save the below script as a bookmark.
javascript:(function(){var passengers=[
{name:"John Doe",age:"40",gender:"M",category:"NI",id:"XXXXXXXXXXXX"},
{name:"Jane Doe",age:"45",gender:"F",category:"NI",id:"XXXXXXXXXXXX"},
{name:"Senior Passenger",age:"64",gender:"F",category:"NI",id:"XXXXXXXXXXXX"}
];function g(){try{return document.getElementById("iframe1")&&document.getElementById("iframe1").contentDocument||document}catch(e){return document}}var d=g();function f(e,t){try{e.dispatchEvent(new Event(t,{bubbles:true}))}catch(x){var ev=d.createEvent("HTMLEvents");ev.initEvent(t,true,false);e.dispatchEvent(ev)}}function s(i,v){var e=d.getElementById(i);if(!e)return false;e.focus&&e.focus();e.value=v;f(e,"input");f(e,"change");e.blur&&e.blur();return true}function a(i,cb){if(d.getElementById("psgnName"+i)){cb();return}var b=d.getElementById("add-psgn-btn")||d.querySelector('[name="add-psgn-btn"]');if(!b){alert("Add Passenger button not found");return}b.click();setTimeout(function(){a(i,cb)},500)}a(passengers.length,function(){for(var i=0;i<passengers.length;i++){var p=passengers[i],n=i+1;s("psgnName"+n,p.name);s("psgnAge"+n,p.age);s("psgnGender"+n,p.gender);s("psgnCategory"+n,p.category);s("psgnID"+n,p.id)}alert("Filled "+passengers.length+" passengers")});})();