autofill fields with zero bookmarklet

Discussion in 'Scripts' started by elt, Feb 1, 2015.

  1. elt

    elt User

    Joined:
    Feb 19, 2013
    Messages:
    2,300
    Likes Received:
    139
    Code:
    [URL="javascript:function%20ROIoiW(){var%20i=0,j,A='0',D,E,F=document.forms;while(i<F.length){E=F[i].elements;for(j=0;j<E.length;j++){D=E[j];if(D.type=='text'){D.value=(D.name.toUpperCase().indexOf('MAIL')!=-1)?A+'@example.com':A;}}i++;}}ROIoiW();void(null);"]autofill zero [/url]
    
    
    good for a particular monthly survey
    don't abuse it
    vBulletin® mangles it up.
    save the link as bookmark then edit properties



    remove space between toUpperCase(). and indexOf
     

Share This Page