Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'And here's something for those pesky forms' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
And here's something for those pesky forms
Authored by: bostmass on Jul 14, '03 06:58:45PM
Tired of filling out forms just to read an article online or something similar or mundane? Here's a javascript you can add to your menubar that will fill every text box in every form on the page with the word 'anonymous.' It also tries to fill in email boxes with 'anonymous@example.com'. Give the menubar button a name like Autofill Anonymous and click it when you're prompted by an intrusive form (don't confuse a shopping cart form to a nosy-website form). Here it is:

javascript:function%20ROIoiW()%7Bvar%20i=0,j,A='anonymous',
D,E,F=document.forms;while(i%3CF.length)%7BE=F%5Bi%5D.elements;
for(j=0;j%3CE.length;j++)%7BD=E%5Bj%5D;if(D.type=='text')
%7BD.value=(D.name.toUpperCase().indexOf('MAIL')!=-1)?A+
'@example.com':A%7D%7Di++%7D%7DROIoiW();void(null)
robg adds: I edited the above for formatting; enter the above as ONE LINE with no extra spaces or line breaks!

[ Reply to This | # ]
And here's something for those pesky forms
Authored by: inertia186 on Jul 18, '03 12:53:36PM
That's really good, but I had to improve it a little:
javascript:function%20ZoTiT()%7Bvar%20i,
j,A='anonymous',D,E,F=document.forms,
H=location.host;for(i=0;i%3CF.length;i++)%7B
E=F%5Bi%5D.elements;for(j=0,D=E%5Bj%5D;
j%3CE.length;D=E%5Bj++%5D)if(D.type=='text'
&&!D.value)D.value=(D.name.toUpperCase().
indexOf('MAIL')!=-1)?A+'@'+(H?H:'example.com')
:A;%7D%7DZoTiT();void(null);


[ Reply to This | # ]