Executing remote script

View: New views
1 Messages — Rating Filter:   Alert me  

Executing remote script

by kakamaica :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I want to write a simple greasemonkey script that does a GM_xmlhttpRequest to my server and runs the code that it receives (by doing an "eval" of the result).

The problem is that the received script needs to call some protected GM functions (such as GM_getValue) and so I get an error:

"Greasemonkey access violation: unsafeWindow cannot call GM_getValue."

Any ideas on how I can solve this?

Thanks!