From 750d4768138ad940ab40bfb9ed4ca449ae693e18 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 25 Dec 2009 08:28:37 +0000 Subject: [PATCH] =?UTF-8?q?Tabberwocky=EF=BC=88=20https://addons.mozilla.o?= =?UTF-8?q?rg/firefox/addon/14439=20=EF=BC=89=E3=81=A8=E9=80=A3=E6=90=BA?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= =?UTF-8?q?=20*=20=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE=E8=A4=87?= =?UTF-8?q?=E6=95=B0=E8=A1=8C=E8=A1=A8=E7=A4=BA=E3=82=92=E5=B8=B8=E3=81=AB?= =?UTF-8?q?=E7=84=A1=E5=8A=B9=E3=81=AB=20*=20=E9=81=B8=E6=8A=9E=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=9F=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92=E5=AD=90?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=81=A8=E3=81=97=E3=81=A6=E9=96=8B=E3=81=8F?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= 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@5611 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/hacks.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 8ac5c51a..176c6fb6 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -932,6 +932,36 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { } } + // Tabberwocky + // https://addons.mozilla.org/firefox/addon/14439 + if ('multirow' in window && + 'updateMultiRowTabs' in multirow) { + eval('multirow.updateMultiRowTabs = '+ + multirow.updateMultiRowTabs.toSource().replace( + 'gBrowser.mPrefs.getBoolPref("tabberwocky.multirow")', + '$& && !gBrowser.treeStyleTab.isVertical' + ) + ); + window.setTimeout('multirow.updateMultiRowTabs();', 0); + } + if ('tabberwocky' in window) { + if ('openSelectedLinks' in tabberwocky) { + eval('tabberwocky.openSelectedLinks = '+ + tabberwocky.openSelectedLinks.toSource().replace( + 'links.forEach(', + + ).replace( + /(\}\)?)$/, + + ) + ); + } + } + window.setTimeout(function(aSelf) { aSelf.overrideExtensionsDelayed(); }, 0, this);