For anyone who still has a question about this, I finally found an answer.
It was on StackExchange, but it was incorrectly it was marked as a
duplicate, so I can't comment on it over there. Anyway, here is the
solution:
*add this to grant:*
// @grant unsafeWindow
*and the working code to use unsafeWindow:*
unsafeWindow.somefunction = exportFunction(function() {
alert("Hello!");
}, unsafeWindow);
unsafeWindow.somefunction();
This is all I needed to get my fairly simple scripts to work with GM2+. I
will report back if I run into further issues.
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.