frustration

Rid Thyself of Autocomplete=Off in Firefox

Update, 12-15-09: See this script for an automated way to apply this change.

If you're at all like me, you use a password manager to keep track of all your passwords, and it works great. Most of the time. Except sometimes, it doesn't work, and you're confused why. Well, more often than not, it's because your password manager has been blocked by the web page you're viewing.

If you look closely at the code of the page, somewhere in it, you'll probably find something that looks like this:

<input class="button" type="submit"  name="login" value="login" autocomplete="off">

That autocomplete parameter that you see at the end there? Yeah, that's the one that's blocking your password manager. So we must block it, so it doesn't block us.

There's a couple approaches to this, but probably the best is to disable Firefox's ability to interpret autocomplete. The way to do this on Linux is to browse to:

/usr/lib/xulrunner-1.9.1.5/components/nsLoginManager.js

And in Windows, I believe it's at:

C:\Program Files\Mozilla Firefox\nsLoginManager.js

Once you've found that file, open it in an editor, and find the section that has isAutoCompleteDisabled, and make it look like this (so it will always return FALSE):

    /*
    * _isAutoCompleteDisabled
    *
    * Returns true if the page requests autocomplete be disabled for the
    * specified form input.
    */
    _isAutocompleteDisabled :  function (element) {
    //        if (element && element.hasAttribute(”autocomplete”) &&
    //            element.getAttribute(”autocomplete”).toLowerCase() == “off”)
    //            return true;
 
    return false;
    },

Once that's done, save the file, restart Firefox and you're all set.

Civic Frustration

I was walking to work a few months ago, enjoying the crisp summer morning air, and I came to a stop light that instructed me to wait to cross. It being a one-way street, I looked left, saw no cars for a block and a half, and casually walked across the road, against the traffic light's firm instruction. I continued walking for another third of a block, and then heard a siren blare behind me on the sidewalk.

Incredibly, I was getting pulled over (so to speak), by a motorcycle cop (now illegally riding on the sidewalk) for defying a traffic light while on foot. I was – and still am – in shock. I expressed my disbelief to the officer, "You're kidding right?" He was not. "You have better things to do with your time, right?" He did not. He told me a woeful tale of how he has to call parents in the middle of the night to tell them that their child had been hit while crossing the road. I informed him that I was in fact a professional walker that literally walked halfway across the continent, and that I was pretty much OK crossing the street. He insisted he was doing me a favor, and teaching me a lesson.

For the 20 minutes that I stalled the guy, I did my best to make him realize that what he was doing was a waste of time, good faith and resources. I realized then and I realize now that this is the minority position when being ticketed by the cops, and I don't think it helped me get out of the ticket. The whole time I was arguing with the guy though, I couldn't help but think about all the waste that is caused by meaningless laws. Jay walking. Full-stops at stop signs. Waiting at red lights at 3AM. The list goes on.

All of these things waste time, and don't have particularly good purposes. We live for only so long, and how much of our time is stuck waiting because of laws that take morality, judgment, and reason out of the picture? Clearly, there is room for improvement, but somehow cops feel comfortable (righteous?) about giving these kinds of tickets.

Ninety-three dollars later, and I've cleared my name of this heinous crime on humanity. Surely something is wrong though, when cops have nothing better to do than to give this kind of ticket. Can't we find better ways to use our resources?

Syndicate content