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);