Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Intelligent Form Filler

Fills registration forms with appropriate random data. Press Ctrl+Shift+F when promted.






Jun 7, 2008
zzsoulzz User

would it be possible to add a static word to a field. say address and static with a value.

 
May 26, 2008
nathaniel_hi... Scriptwright

The text hint is added to every single webpage that contains a form, including search engines. This should be a tooltip and/or right-click option for input fields only.
And please include a link to this page in the source.

 
Apr 20, 2007
srhqupxb User

I've added code to post ACTUAL names in a textbox named fname or firstname or lastname or lname

// Version 1.1
// ==UserScript==
// @name Intelligent Form Filler
// @description Fills registration forms with appropriate random data. Press Ctrl+Shift+F when promted.
// @include *
// ==/UserScript==

var fname = new Array("EFRAM","EFREN","EFTHYMIA",
"EGAN","EGLESPER","EKREM","MARSHALLA","MARSHELLE","MARSYM","MARTEL","STACIA",
"TOM","TOMASINA","TOMASZ","TOMIKA","TOMMIE","JAMEH","JAMELAH","JAMELLA","JAMELOT",
"LAUDEL","LAUIRE","ROBERTO","JOSE","HARRIETT","HARRISS","NATALIE","NATANEL","KEATS",
"KEDRICK","KEE","KEIL","WEAVER","WEBER","WELINGTON","WELPHAL","WENCESLAO","SAMATHA",
"SAMAY","SAMID","SAMIRE","ROAQUNZIO","ROBBIN","ROBERSON","JOYE","JR","JRASHONE","JU",
"JUAIANDRA","RONALD","CRAIG","ANGLIE","ANH","ANIANO","ANIS","ANISIA","ANJANETTA",
"ANJANETTE","ANN","FEDDIE","FELICE","FELICESIA","CHAD","JAXIER","JAYFRIES","KEVIN",
"HUDA","SHANAH","SHANAY","SHANAYJA","SHANDRELL","SHANDRIECE","LEVAUD","LEVY",
"LEWANDA","LEWARNA","PHILONZO","PHUC","MARGUISHA","MARIA","ALLAND","ALLEGRA","GLENNROY",
"GLENROY","GLISET","PAMELA","EDGARD","EDILSA","EDILSON","EDILUERTO","FREDERIC",
"MAUREN","CHARLES","TREAINE","TREJA","TREJO","TRENELL","TRESA","TRESOR","TRESTAN","TRETISHA",
"TREVOR","BERNADO","LAILA","LAJEUNE","LAKEECHA","LAKEI","LAKEISHIA","LAKENYA","KARAKA",
"KARAN","KAREEMA","KAREEMAH","JOSEPH","TAARON","TAB","TACITA","TADD","TAEEUN","TAEICHA",
"LEOLA","MAALIL","MAARKIN","MACENA","MACHEL","MACHELLE","MADELAINE",
"MADELYN","MADHULIKA","MADRIA","SHERILYN","SHERILYNN","SHERITA","SHERLENE","SHERLEY","SHERNAL","SHERRAE");

var lname = new Array("SLAGLE","FORMAN","TARANTINO","BROOKES","HUSSAN","SALISBURY","PASULA","SIBBITT"
,"INGS","PIRRONE","BAYALA","HENEGAR","RIKKHI","TRIGG","MCKIE","GLOR","DURNING","BLANCHET"
,"VILLAFRANCA","GOOCH","REDDIX","SCOTTBERTH","IPARREADEENCLAD","TYRER","POZZA","MOUYIARIS","COMRAUX","MEDUGNO","ROSEBORO","MABROUK"
,"STANZIONE","MONTANYE","TERRAZA","SORIA","DURFEY","FEREN","PINKETT","STRUBBLE","HAMMERLING","AHERA"
,"BRACY","FLOHN","RUMGAY","DRESCHER","MINCE","ZERILLO","WEITKNECHT","KOSMAS","JEETAN","TISCHLER","FEDDON"
,"JEL","TAWADROS","HAEG","PANACECK","FRANSAW","CAKICI","COVELLO","BERNARDES","DAWSEY"
,"CANAL","MILANO","HEWARD","THREAT","LUFF","JOZENVILLE","FELICE","STRIDIRON","CEFUENTES","JUMP","GOSHE","OBERMEYER"
,"COSTANTINE","WITZ","DEFONTES","ALPHONSUS","GALLENTINE","GODINHO","MCCLISH","PAPARELLI","DELAHOZ"
,"KOCINEK","LINEBERGER","PERSLEY","THEISEN","WHEATCRAFT","SZAREK","LUQUE","BREITUNG","SELVIN","KELLWAN","SOBIECK"
,"SUMMERSILL","WENRICK","MOMPER","TANTI","FOXWORTH","CUTTS","HANSFORD","HINCAPIE","DEMERITTE","SOLERO"
,"BARTKOVICH","MANHERTZ","COTEY","FIELDSON","MOLINARI","CAVALCANTE","LLUCH","SHIPPERT","BERTRAM"
,"BARAS","GEVINGS","TIHON","JAHANBAKHSH","PERNICE","GRIJALUA","LALGEE","ANTONETTY","SETTLE"
,"ALECCIA","RATCHFORD","MAGDALENA","AMANKWAH","CUBA","ABBRUZZESE","BISPHAM","MACNITT","PENLARD","STOVELL"
,"HUMENICK","EINSIG","GROTH","DEPASS","STOCKS","FULGHUM","MORALE","LAGLE","ELLETT","ISHIZAKI","HACKLEMAN","DOMBROWSKI"
,"DEWILLIS","KREFT","FERTILL","DANSEY","ENCK","HENRIQUEZ","MURCHISON","PERLA","BARGAR","PINCHOT","CULLIFER","BALKOM","CARALLI"
,"BUCHLER","FRANKI","HIRSCHI","TATO","SZEWC","REIN","COTAL","BROWDY","LENDZIAN","SILIMON","POWALISZ","TOPPINO"
,"SEALOCK","SHANAWAY","FILA","PRIMO","HARGRAVES","OCEGUERE","ROLFE","INNIS","STAPLES"
,"DEARMOND","KARAGOSIAN","OMUZUWA","QUEELEY","CUENCAS","ROAKE","MAYCOCK","JAMEAU","GOEPEL","SANTIAGORIVERA"
,"MAURIN","TOVET","ROUSEY","AUDY","HERVEY","NAKASONE","ARKEH","SIDENBENDER","BENDL","OLTALAZA","WOLFBOWEN"
,"HARTNETT","HILDESHEIM","SOREL","WILSHIRE");

function randomInt(max) {
return Math.floor(Math.random()*max);
}

function match(input, regexp) {
return ((input.name && input.name.match(regexp)) ||
(input.id && input.id.match(regexp)));
}

function randomWord(length) {
var word="";
for (var i=0; i<length>
word+=String.fromCharCode(randomInt(26)+97);
return word;
}

function fillPhoneNumber(input) {
var n=input.getAttribute("maxlength");
if (n<=10)
input.value=(randomInt(8)+2)+""+randomInt(1000000000);
else if (n>10)
input.value=(randomInt(800)+201)+"-"+(randomInt(800)+201)+"-"+(randomInt(10000));
}

function makeSelection(select) {
if (select.length>2)
select.selectedIndex=randomInt(select.length-2)+2;
else
select.selectedIndex=0;
}

var retype;
function fillTextBox(input) {
if (match(input,/retype|c(on)?fi?rm/i) && retype)
input.value=retype;
else if (match(input,/e-?mail/i)) {
input.value=email+"@mailinator.com";
GM_setValue("form filler email", email);
}
else if (match(input,/login|use?r/i)) //user or login name
input.value=username;
else if (match(input,/phone/i)) //phone number
fillPhoneNumber(input);
else if (match(input,/zip/i) || input.getAttribute("maxlength")==5) //zip code
input.value=randomInt(90000)+10000;
else if (match(input,/code|ima?ge?/i)) {//CAPTCHA
input.focus(); captcha=true;}
else if (match(input,/year/i) || input.getAttribute("maxlength")==4) //year of birth
input.value=1926+randomInt(60);
else if (match(input,/day|date/i) || input.getAttribute("maxlength")==2) //date of birth
input.value=randomInt(28)+1;
else if (match(input,/nu?m?be?r/i))
input.value=randomInt(10000000)+42;
else if (match(input,"^[F|f](irst)?[N|n](ame|am){1}"))
input.value = fname[randomInt(136)].toLowerCase();
else if (match(input,"^[L|l](ast)?[N|n](ame|am){1}"))
input.value = lname[randomInt(199)].toLowerCase();
else if (match(input,".*[N|n](ame|am){1}"))
input.value = fname[randomInt(136)].toLowerCase() + " " + lname[randomInt(199)].toLowerCase();
else
input.value=randomWord(7+randomInt(4));
retype=input.value;
}

function fillField(input) {
if (input.type=="hidden")
return;
else if (input.type=="password")
input.value=password;
else if (input.type=="text")
fillTextBox(input);
else if (input.type=="checkbox")
input.checked=true;
else if (input.type=="radio" && input.name) {
var r=document.getElementsByName(input.name);
r[randomInt(r.length)].checked=true;
}
else if (input.type=="radio")
input.checked=true;
else if (input.type && input.type.match(/select/))
makeSelection(input);
else if (input.type=="submit" && !captcha)
input.focus();
}

if (GM_getValue("form filler email")!=undefined && GM_getValue("form filler email")!="") {
var a=document.createElement("a");
a.setAttribute("href","http://mailinator.com/mailinator/maildir.jsp?email="+GM_getValue("form filler email")+"");
a.appendChild(document.createTextNode("Check your email for confirmation link."));
document.body.insertBefore(a, document.body.firstChild);
GM_setValue("form filler email", "");
}

if (!document.forms.length)
return;

var f=document.forms[0];
for (var i=1; i<document>
if (document.forms[i].elements.length>f.elements.length)
f=document.forms[i];
if (f.elements.length<7>
return;

var div=document.createElement("div");
div.appendChild(document.createTextNode("Press CTRL+SHIFT+F to fill in form."));
f.parentNode.insertBefore(div, f);

var username, password, email, captcha;
function submitForm() {
username=randomWord(randomInt(4)+8);
password=randomWord(8)+randomInt(100);
email=randomWord(10);
captcha=false;
for (var i=0; i<f>
fillField(f.elements[i]);
}

function keyPressed(e) {
if( e.ctrlKey && e.shiftKey && e.keyCode == 70 )
submitForm();

}

window.addEventListener('keydown', keyPressed, false)

 
Jul 13, 2006
KoRnDragon User

Can you make it take text field names like "firstname" and make generate a string of text 3-10? Then from there the user can determine what field needs to go with each type. Of course all forms aren't named the same, so bd_d, bd_m and bd_y would be Birthday (day, month and year) You could make a section of each common type of field and allow the user to fill in custom names for each to make the script more intelligent so to speak.

 
Apr 17, 2006
Filler Script's author

Edit line near the bottom:
email=randomWord(10);
to look like:
email="staticstring";

 
Apr 10, 2006
Manolo User

Great!
Is there a way to use allways the same mailinator email adress???

 
Mar 21, 2006
surdicforest User

gracias debe ser bueno

You could comment on this script if you were logged in.