@ momentum
Updating droid availability worked.
I have a couple friendly suggestions though.
Before I read your post I edited your script and removed all traces of having to check for droid availability.
It worked just fine. This means that the droid element would always appear when you pressed 'a', but the correct values would still be entered in the right places and the script wouldn't have to use extra bandwidth checking a users race. It seems quite silly to make a page request to decide whether or not to hide the droid element when a user is going to know whether or not they have droids.
Also Look at the first arguments passed to GM_setValue. Those should be changed to 'type4' and 'type5' respectively
b = document.getElementsByName('type4')[0];
if(b){
b.setAttribute('value',GM_getValue('type4',''));
b.addEventListener('change', function() {GM_setValue('type3',document.getElementsByName('type4')[0].value)}, true);
}
b = document.getElementsByName('type5')[0];
if(b){
b.setAttribute('value',GM_getValue('type5',''));
b.addEventListener('change', function()
{GM_setValue('type3',document.getElementsByName('type5')[0].value)}, true);
Great script!
Rehabilitated IC developer