David
David

Reputation: 6152

How can I prevent a website from disabling form autocompletion?

UBS is now using the autoComplete OFF for their login form to prevent passwords from being filled in automatically. From my perspective, this is actually just a nuisance. I don't need UBS to manage my security for me.

It's being done in one of the scripts that is loaded when you access their main client site.

So my question is whether there might be a way to prevent a site from disabling autocompletion? Could this be done with GreeceMonkey somehow?

Thanks, D P.S. To save getting lectured on the importance of security, let me add that I'm using WholeDisk Encryption so my machine can't even be booted up without a password.

Upvotes: 2

Views: 180

Answers (1)

Ruan Mendes
Ruan Mendes

Reputation: 92274

Type the following into the URL bar (in a single line) or make it a bookmarklet

javascript: function turnOnAutoComplete(tagName) {
                var els = document.getElementsByTagName(tagName);
                for (var i=0; i < els.length; i++) {
                    els[i].removeAttribute("autocomplete");
                }
            }
            turnOnAutoComplete('input');
            turnOnAutoComplete('form');

For an example, go to http://www.htmlcodetutorial.com/forms/_INPUT_AUTOCOMPLETE.html The input field on that page is set to autocomplete="OFF", so you get no autocomplete for that field.

Then you can go and run the script above from the URL bar and you should see that will now get autocomplete suggestions, unless you've never filled out a form with a name.

Upvotes: 2

Related Questions