diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index bf6cc26e..018e29e9 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -718,4 +718,14 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { }); } + // SBM Counter + if ('SBMCounter' in window) { + eval('SBMCounter.action = '+ + SBMCounter.action.toSource().replace( + 'gBrowser.selectedTab = gBrowser.addTab', + 'TreeStyleTabService.readyToOpenChildTab(gBrowser); $&' + ) + ); + } + };