diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index a19f8ac1..c180d236 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -36,8 +36,10 @@ var TreeStyleTabWindowHelper = { if ('BrowserOpenTab' in window) { eval('window.BrowserOpenTab = '+ window.BrowserOpenTab.toSource().replace( - 'gBrowser.loadOneTab(', - 'gBrowser.treeStyleTab.onBeforeNewTabCommand(); $&' + // loadOneTab => Firefox 10 or olders + // openUILinkIn => Firefox 11 or later + /(gBrowser\.loadOneTab\(|openUILinkIn\(.+\,\s*"tab"\))/, + 'gBrowser.treeStyleTab.onBeforeNewTabCommand(); $1' ) ); }