Force Save Password

Posted at

Allowing the browser's password-manager to save the login data, meaning user-name and password, even if it is in a SSL (for example https secured websites).

it is done by setting the autocomplete attribute of forms and password field to "on".

put easily as a bookmark button (known as 'snippet').

add this to your bookmark (or favorites) toolbar:

javascript:(function (){var a,b,c,d,e,f,g,h,i;a=b=c=0;d=document.forms;for(f=0;f alert("Auto-Complete Has Been Re-Applied To:\
-----------------------------------------------\
Forms: "+(a+" form"+(a==1?"":"s"))+" .\
Forms Elements: "+(b+" form element"+(b==1?"":"s"))+" .\
On-Submits: "+(c+" form"+(c==1?"":"s"))+" .");})();


You can look at the formatted code for better understanding:
(it is slightly different)

(function () {
var ca, cea, cs, df, dfe, i, j, x, y;

function n(i, what) {
return i + " " + what + ((i == 1) ? "" : "s")
}
ca = cea = cs = 0;
df = document.forms;
for (i = 0; i < df.length; ++i) {
x = df[i];
dfe = x.elements;
if (x.onsubmit) {
x.onsubmit = "";
++cs;
}
if (x.attributes["autocomplete"]) {
x.attributes["autocomplete"].value = "on";
++ca;
}
for (j = 0; j < dfe.length; ++j) {
y = dfe[j];
if (y.attributes["autocomplete"]) {
y.attributes["autocomplete"].value = "on";
++cea;
}
}
}
alert("Auto-Complete Has Been Re-Applied To:\
-----------------------------------------------\
Forms: " + n(ca, "form") + " .\
Forms Elements: " + n(cea, "form element") + " .\
On-Submits: " + n(cs, "form") + " .");
})();

Example Using PayPal