IE Tab Plus ( https://addons.mozilla.org/firefox/addon/10909/ )で開かれるタブを子タブにするようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7142 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-01 14:59:19 +00:00
parent 10b52fb0f3
commit 7c7c835ff8

View File

@ -1103,6 +1103,26 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function TSTService_override
document.documentElement.setAttribute(TreeStyleTabService.kHIDE_NEWTAB, true);
}});
// IE Tab Plus
// https://addons.mozilla.org/firefox/addon/10909/
if ('IeTab' in window && IeTab.prototype) {
if (IeTab.prototype.switchTabEngine)
eval('IeTab.prototype.switchTabEngine = '+
IeTab.prototype.switchTabEngine.toSource().replace(
'var newTab = ',
'TreeStyleTabService.readyToOpenChildTab(); $&'
)
);
if (IeTab.prototype.addIeTab)
eval('IeTab.prototype.addIeTab = '+
IeTab.prototype.addIeTab.toSource().replace(
'var newTab = ',
'TreeStyleTabService.readyToOpenChildTab(); $&'
)
);
}
window.setTimeout(function(aSelf) {
aSelf.overrideExtensionsDelayed();