This page shows how a Firefox Greasemonkey script can interact with a target page's javascript under the new unsafeWindow architecture.
To see various messages, open the console (Ctrl Shift K).
Also from the console, note that things defined in the Greasemonkey script, like `gmMessageStr`, `GM_setClipboard`, etc., are not accessible from the console -- which is the target page's scope.