Firefox 3.0.2 にしたら死亡!
window.eval の仕様が変わった?
何かかわるようなものないのかなぁ。
command とかどうやって取ったら良いのか思いつかない。
以下、極めて駄目くさいパッチ。
どうなっても知りません。
--- ldrize.user.js.orig 2008-09-25 12:59:51.343750000 +0900 +++ ldrize.user.js 2008-09-25 13:00:00.046875000 +0900 @@ -121,6 +121,7 @@ var self = this; window.LDRize = { + self: self, getSiteinfo: function(){return self.getSiteinfo()}, // return current siteinfo setSiteinfo: function(a){self.setSiteinfo(a)}, // specify instance of siteinfo getSiteinfoByName: function(a){return self.getSiteinfoByName(a)}, // specify name of siteinfo --- ldrize_cooperation.js.orig 2008-09-25 11:34:52.875000000 +0900 +++ ldrize_cooperation.js 2008-09-25 13:00:53.234375000 +0900 @@ -161,12 +161,12 @@ this.addAfter(GreasemonkeyService,'evalInSandbox',function(code,codebase,sandbox){ if(sandbox.window.LDRize != undefined && sandbox.window.Minibuffer != undefined){ sandbox.window.addEventListener("focus",function(){ - self.LDRize = window.eval("self",sandbox.LDRize.getSiteinfo); - self.Minibuffer = window.eval("command",sandbox.Minibuffer.addCommand); + self.LDRize = sandbox.LDRize; + self.Minibuffer = sandbox.Minibuffer.command; },false); if(window.content.wrappedJSObject == sandbox.unsafeWindow){ - self.LDRize = window.eval("self",sandbox.LDRize.getSiteinfo); - self.Minibuffer = window.eval("command",sandbox.Minibuffer.addCommand); + self.LDRize = sandbox.LDRize; + self.Minibuffer = sandbox.Minibuffer.command; } } }); --- minibuffer.user.js.orig 2008-09-25 12:57:45.796875000 +0900 +++ minibuffer.user.js 2008-09-25 12:59:10.500000000 +0900 @@ -1489,6 +1489,7 @@ addShortcutkey : function(a){command.addShortcutkey(a)}, addCommand : function(a){command.addCommand(a)}, + command : command, execute : function(a, stdin){return command.execute(a, stdin)}, message : FlashMessage.showFlashMessageWindow,