elvum: (Default)
[personal profile] elvum
So, I finally got sufficiently annoyed by Ocado arbitrarily deciding to stop me choosing whether or not to store the password for their website to write a trivial Greasemonkey script to enable the functionality again. You can get it here, if you would find it useful.

// ==UserScript==
// @name           Enable Ocado password retention
// @namespace      net.elvum.ocado
// @description    Enables the retention of passwords for the Ocado website.
// @include        http://www.ocado.com/*
// ==/UserScript==

var passwordBoxes = document.evaluate("//input[@type='password']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < passwordBoxes.snapshotLength; i++) {
  passwordBoxes.snapshotItem(i).setAttribute("autocomplete","on");
}
From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

Profile

elvum: (Default)
elvum

April 2009

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 28th, 2017 10:47 am
Powered by Dreamwidth Studios