diff --git a/content/treestyletab/windowHelperHacks.js b/content/treestyletab/windowHelperHacks.js index 6ca5adf2..a5fe6a26 100644 --- a/content/treestyletab/windowHelperHacks.js +++ b/content/treestyletab/windowHelperHacks.js @@ -1085,6 +1085,19 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove } } + // InstaClick + // https://addons.mozilla.org/firefox/addon/instaclick/ + if ('instaclick' in window && + 'contentAreaClick2' in window.instaclick && + sv.getTreePref('compatibility.InstaClick')) { + eval('instaclick.contentAreaClick2 = '+ + instaclick.contentAreaClick2.toSource().replace( + 'gBrowser.loadOneTab(', + 'TreeStyleTabService.readyToOpenChildTab(); $&' + ) + ); + } + window.setTimeout(function(aSelf) { aSelf.overrideExtensionsDelayed(); }, 0, this); diff --git a/defaults/preferences/treestyletab.js b/defaults/preferences/treestyletab.js index aaedc134..7616c749 100644 --- a/defaults/preferences/treestyletab.js +++ b/defaults/preferences/treestyletab.js @@ -578,6 +578,7 @@ pref("extensions.treestyletab.compatibility.GoogleToolbar.Sidewiki", true); pref("extensions.treestyletab.compatibility.Greasemonkey", true); pref("extensions.treestyletab.compatibility.Highlander", true); pref("extensions.treestyletab.compatibility.IETabPlus", true); +pref("extensions.treestyletab.compatibility.InstaClick", true); pref("extensions.treestyletab.compatibility.LastTab", true); pref("extensions.treestyletab.compatibility.Linky", true); pref("extensions.treestyletab.compatibility.Locationbar2", true);