[Greasemonkey] Another Thought on Platypus/GM

Scott Turner srt19170 at gmail.com
Tue Dec 13 09:36:29 EST 2005


I can't find much (any) documentation on how evalInSandbox() works, but am I
correct in assuming that with the exception of the GM_ functions, a GM
script cannot do anything that a content script could not do?

If that's the case, I believe that Platypus scripts can be made safe by
doing something along these lines:

function do_platypus_script() {
   platypus_do_function = unsafeWindow.platypus_do_function;
   GM_*registerMenuCommand = null;*
   GM_...  = null;

Thoughts?

-- Scott


More information about the Greasemonkey mailing list