Talk:Greasemonkey Hacks/Web Forms

From WikiContent

Jump to: navigation, search

Many, if not all, of the descriptions of how to hook submissions from forms are wrong. The following code, simply does not work in FF 3.x:

real_submit = HTMLFormElement.prototype.submit;
HTMLFormElement.prototype.submit = handleSubmit;

It fails with an error in regards to the "prototype" property.

Is there a known fix for this?

Regards,

Craig

Personal tools