See https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked
Save and select from a list of profiles to populate the form. So, one can fill up the form not only for oneself, but also for parents and children.
options.html calls options.js to persist user data into chrome storage.
contents.js populates the form by matching element id with values found in storage, when the browser loads MDAC form url.
Enter in Chrome address bar chrome://extensions/
Enable developer mode
Click Load unpacked
and select chrome-autofill-mdac-extension folder found in this repository
Use Chrome to browse https://imigresen-online.imi.gov.my/mdac/main?registerMain
You would see the form is automatically filled up.
To change the form values to yours, right click the extension and select 'options'.
Use inspect view from the chrome extension, to debug options.html and options.js
Also, use developer tools on the MDAC register page, to debug content.js