*Quote:In order to write values to unsafeWindow you will need to use the 
new methods* cloneInto(), exportFunction(), and/or createObjectIn().

I used this code to define a const variable in page, and running time is 
@run-at document-start

w = (wrappedJSObject in window)?wrappedJSObject:window;
w.setTimeout("const rwt = function(){}", 0 );

so the page script can't overwrite it.

How can I achieve the same result with createObjectIn()?


-- 
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.

Reply via email to