Mouseless Browsing ( https://addons.mozilla.org/firefox/addon/879 ) と連係して動作するようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3803 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-03-15 23:51:43 +00:00
parent 2b34817492
commit 460ca8f1c2

View File

@ -748,4 +748,25 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
);
}
// Mouseless Browsing
if ('mouselessbrowsing' in window &&
'EventHandler' in mouselessbrowsing) {
if ('execute' in mouselessbrowsing.EventHandler) {
eval('mouselessbrowsing.EventHandler.execute = '+
mouselessbrowsing.EventHandler.execute.toSource().replace(
/((?:var [^=]+ = )?Utils.openUrlInNewTab\()/g,
'TreeStyleTabService.readyToOpenChildTab(); $1'
)
);
}
if ('openLinkInOtherLocationViaPostfixKey' in mouselessbrowsing.EventHandler) {
eval('mouselessbrowsing.EventHandler.openLinkInOtherLocationViaPostfixKey = '+
mouselessbrowsing.EventHandler.openLinkInOtherLocationViaPostfixKey.toSource().replace(
'Utils.openUrlInNewTab(',
'TreeStyleTabService.readyToOpenChildTab(); $&'
)
);
}
}
};