Open new tab by Tile Tabs as a child of the current tab

This commit is contained in:
Piro / YUKI Hiroshi 2014-05-06 00:45:04 +09:00
parent 86896dfa3d
commit dd45a2a080
2 changed files with 14 additions and 0 deletions

View File

@ -1166,6 +1166,19 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove
);
}
// Tile Tabs
// https://addons.mozilla.org/firefox/addon/tile-tabs/
if ('tileTabs' in window &&
'allocateTab' in window.tileTabs &&
TreeStyleTabUtils.getTreePref('compatibility.TileTabs')) {
eval('tileTabs.allocateTab = '+
tileTabs.allocateTab.toSource().replace(
'tab = gBrowser.addTab',
'TreeStyleTabService.readyToOpenChildTabNow(); $&'
)
);
}
window.setTimeout(function(aSelf) {
aSelf.overrideExtensionsDelayed();
}, 0, this);

View File

@ -688,6 +688,7 @@ pref("extensions.treestyletab.compatibility.Tabberwocky", true);
pref("extensions.treestyletab.compatibility.TabControl", true);
pref("extensions.treestyletab.compatibility.TabsOnBottom", true);
pref("extensions.treestyletab.compatibility.TabUtilities", true);
pref("extensions.treestyletab.compatibility.TileTabs", true);
pref("extensions.treestyletab.compatibility.TMP", true); // Tab Mix Plus
pref("extensions.treestyletab.compatibility.TooManyTabs", true);
pref("extensions.treestyletab.compatibility.TotalToolbar", true);