On 02/25/10 10:50, rveach wrote:
Here is basically my code snippet:

..
unsafeWindow.HTMLFormElement.prototype.submit = newFormSubmit;

function newFormSubmit(e) {
..
GM_setValue("r00t_lastaction", fieldActions[i]);
..
}

You can't do this. You're trying to call a privileged GM_ api from the content scope.

http://wiki.greasespot.net/Greasemonkey_access_violation

You really shouldn't be interacting with unsafeWindow at all, you should be addEventListener'ing the form element.

http://wiki.greasespot.net/Avoid_Common_Pitfalls_in_Greasemonkey

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to