new tabs opened by InstaClick ( https://addons.mozilla.org/firefox/addon/instaclick/ ) should become child tabs of the current tab.

This commit is contained in:
SHIMODA Hiroshi 2011-06-17 22:08:52 +09:00
parent face3c44c9
commit 99e8ae01dd
2 changed files with 14 additions and 0 deletions

View File

@ -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);

View File

@ -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);