Force Save Password

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

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:\n-----------------------------------------------\nForms: " + n(ca, "form") + " .\nForms Elements: " + n(cea, "form element") + " .\nOn-Submits: " + n(cs, "form") + " .");
})();

Example Using PayPal

Leave a Reply