From d88c432de1f37bdd81b27546617c3886008c7c50 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 28 Feb 2008 06:45:15 +0000 Subject: [PATCH] =?UTF-8?q?Super=20DragAndGo=E3=80=81Drag=20de=20Go?= =?UTF-8?q?=E3=81=A7=E9=96=8B=E3=81=8B=E3=82=8C=E3=82=8B=E6=96=B0=E8=A6=8F?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=82=92=E7=8F=BE=E5=9C=A8=E3=81=AE=E3=82=BF?= =?UTF-8?q?=E3=83=96=E3=81=AE=E5=AD=90=E3=81=AB=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=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@1948 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/hacks.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 5c85eaf6..b8572017 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -457,4 +457,39 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { gBrowser.treeStyleTab.internallyTabMoving = true; // until "TMmoveTabTo" method is overwritten } + + + // Super DragAndGo + if ('superDrag' in window) { + eval('superDrag.onDrop = '+ + superDrag.onDrop.toSource().replace( + /(var newTab = getBrowser\(\).addTab\([^\)]+\);)/g, + <> + ) + ); + } + + // Drag de Go + if ('ddg_ges' in window) { + eval('ddg_ges.Open = '+ + ddg_ges.Open.toSource().replace( + 'if (mode[1] == "h" || mode[1] == "f") {', + <> + ) + ); + eval('ddg_ges.Search = '+ + ddg_ges.Search.toSource().replace( + 'if (mode[1] == "h" || mode[1] == "f") {', + <> + ) + ); + } + };