[Greasemonkey] porting help

Michael Bierman greasemonkey at thebiermans.net
Thu Dec 8 00:57:34 EST 2005


One of the common things I do with GM is set/change form values.  I had a
look at the wiki, but I'm not sure if it is up to date and I am not familiar
with XPCnativeWrapper.  Also, I'm not an advanced JavaScript programmer.

My old scripts looked like this and used to work just fine.

(function() {
    document.login_form.login.value = "userid";
    setTimeout('document.login_form.passwd.focus()',1250);
})();

What do I need to change and is there a simple answer to why this is broken?

Thanks.

Michael


More information about the Greasemonkey mailing list