Ok, this has not been thoroughly tested, though the below should work. Locate the line:
Code:
if (this.fields[i].type=="text")
and change that to:
Code:
if (this.fields[i].type=="text" || this.fields[i].type=="password")
Then, locate the line:
Code:
if (cookievaluepair[i].split(":")[0]!="toggleboxid" && this.getfield(cookievaluepair[i].split(":")[0]).type=="text")
and change that to:
Code:
if (cookievaluepair[i].split(":")[0]!="toggleboxid" && this.getfield(cookievaluepair[i].split(":")[0]).type.search(/text|password/i)!=-1)
Or if you don't want to change things manually, here's the modified version of formretain2.js:
Bookmarks