diff --git a/content/treestyletab/windowHelperHacks.js b/content/treestyletab/windowHelperHacks.js index a5fe6a26..65303338 100644 --- a/content/treestyletab/windowHelperHacks.js +++ b/content/treestyletab/windowHelperHacks.js @@ -1098,6 +1098,19 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove ); } + // Duplicate This Tab + // https://addons.mozilla.org/firefox/addon/duplicate-this-tab/ + if ('duplicatethistab' in window && + 'openLinkWithHistory' in window.duplicatethistab && + sv.getTreePref('compatibility.DuplicateThisTab')) { + eval('duplicatethistab.openLinkWithHistory = '+ + duplicatethistab.openLinkWithHistory.toSource().replace( + 'var newTab = ', + 'TreeStyleTabService.readyToOpenChildTab(); $&' + ) + ); + } + window.setTimeout(function(aSelf) { aSelf.overrideExtensionsDelayed(); }, 0, this); diff --git a/defaults/preferences/treestyletab.js b/defaults/preferences/treestyletab.js index 7616c749..1e7b12e5 100644 --- a/defaults/preferences/treestyletab.js +++ b/defaults/preferences/treestyletab.js @@ -569,6 +569,7 @@ pref("extensions.treestyletab.compatibility.ColorfulTabs", true); pref("extensions.treestyletab.compatibility.DomainTab", true); pref("extensions.treestyletab.compatibility.DragDeGo", true); pref("extensions.treestyletab.compatibility.DragNDropToolbars", true); +pref("extensions.treestyletab.compatibility.DuplicateThisTab", true); pref("extensions.treestyletab.compatibility.FirefoxSync", true); pref("extensions.treestyletab.compatibility.FireGestures", true); pref("extensions.treestyletab.compatibility.FLST", true);