diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 443d086d..39c49ca4 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -435,6 +435,17 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function TSTService_override ) ); + if ('TabmixContext' in window && + typeof TabmixContext.openMultipleLinks == 'function') { + eval('TabmixContext.openMultipleLinks = '+ + TabmixContext.openMultipleLinks.toSource().replace( + /(TMP_loadTabs\([^\)]+\);)/g, + 'TreeStyleTabService.readyToOpenChildTab(gBrowser, true); $1 TreeStyleTabService.stopToOpenChildTab(gBrowser);' + ) + ); + } + + let listener = { handleEvent : function(aEvent) {