$ would be jQuery - he's accessing the window's pre-existing instance and
using the jQuery getScript method (http://api.jquery.com/jQuery.getScript/),
but it's definitely loading in the unsafeWindow scope...
On 9/6/2012 10:45 AM, Anthony Lieuallen wrote:
I don't know what "$" is in this context, nor what getScript() does, but
this is almost definitely loading the script into the content scope which
cannot access the Greasemonkey sandbox. You probably want @require.
http://wiki.greasespot.net/Metadata_Block#.40require
On Thu, Sep 6, 2012 at 1:31 PM, JE <[email protected]
<mailto:[email protected]>> wrote:
win.$.getScript('http://scripts.die-staemme.de/gm-scripts/DSsendReportsToOBST.js'
<http://scripts.die-staemme.de/gm-scripts/DSsendReportsToOBST.js%27>);
--
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.
--
Jay Rossiter http://www.cothlamadh.net/
503.896.6187 [email protected]
--
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.