Oct 15 2009

Defeating the Anti-Autocomplete Demons

There are demons out there. They have sent their evil henchbugs to make my life difficult. The Santa Clara library login page for some unfathomable reason doesn’t trigger Firefox’s autocomplete. No, the HTML form doesn’t specify “autocomplete=off”. As far as I can tell, it’s just that Firefox doesn’t seem to think that my library barcode is worth remembering. Which is a real bummer because it’s impossible to remember and about as sensitive as the callus on my big toe.

So I got jiggy with GreaseMonkey and made my own autofill script:

// ==UserScript==
// @name Santa Clara Library Autocomplete
// @namespace http://hans.fugal.net/
// @include https://sccl.santaclaraca.gov/patroninfo*
// ==/UserScript==
name = document.getElementsByName('name')[0];
code = document.getElementsByName('code')[0];
name.value = 'Fred Flintstone';
code.value = 'Your impossible-to-remember-barcode goes here';


Aug 30 2006

Sourdough Web Calculator

I ported my calculator to javascript and an HTML form, which you can find at http://hans.fugal.net/sourdough/calculator.html. Happy baking!