今知っただけですがgreasemonkey.jsの中でGMスクリプトの実行コンテキストグローバルスコープのsandboxにconsoleが // detect and grab reference to firebug console and context, if it exists var firebugConsole = this.getFirebugConsole(unsafeContentWin, chromeWin); .... sandbox.console = console; というふうになってて、たぶんnot unsafeにconsoleという名前で参照できるのでunsafeWindow.console.logじゃなくてconsole.logを利用するのがいいですよ。(試してないので使えなかったらごめんなさい。たぶん使えるはず) でも 2006-10-10 - 実用 に