Form filler

Post date: Apr 6, 2015 3:13:20 PM

There are a few tools out there that will make the tedious work of filling out forms easier. They are generally called form filler or auto form fillers.

There are some obvious security issues here that you should be aware of but we are all adults here right?

So if you are too paranoid to use the tools, you can build one yourself.

The time you invest in this will probably only be worth it if you have to fill out a ton of the same forms. But hey, lets mention it anyway.

Usually the form elements will have identifiers like the id or the name, so use the element inspector to find these out and use this template to start pre-filling the form. I have put 3 examples of getting to a certain element in here.

javascript:(function(){
    document.getElementById('nameContact').value="Henry Hackit";
    document.forms.namedItem('contactPhone').value="00000000";
    document.forms[0].elements[1].value='none of your business';
})()

So now all you have to do with your form is press submit or edit relevant information and then press submit.

Or you could add an extra line to have it automatically submit for you.

document.forms[0].submit();