From 7f63b79fc587c9dd8f6e29ab93b19ef231d05ac9 Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 29 Apr 2008 18:39:00 +0000 Subject: [PATCH] =?UTF-8?q?Greasemonkey=E3=81=AEGM=5FopenInTab=E9=96=A2?= =?UTF-8?q?=E6=95=B0=E3=81=A7=E9=96=8B=E3=81=84=E3=81=9F=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=82=92=E7=8F=BE=E5=9C=A8=E3=81=AE=E3=82=BF=E3=83=96=E3=81=AE?= =?UTF-8?q?=E5=AD=90=E3=81=AB=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2267 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/hacks.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 258daeff..f54ad7e8 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -571,4 +571,14 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { ); } + // Greasemonkey + if ('GM_BrowserUI' in window && 'openInTab' in GM_BrowserUI) { + eval('GM_BrowserUI.openInTab = '+ + GM_BrowserUI.openInTab.toSource().replace( + 'document.getElementById("content")', + 'TreeStyleTabService.readyToOpenChildTab($&); $&' + ) + ); + } + };