GreasemonkeyのGM_openInTab関数で開いたタブを現在のタブの子にするようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2267 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-04-29 18:39:00 +00:00
parent d1a37d9c75
commit 7f63b79fc5

View File

@ -571,4 +571,14 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
); );
} }
// Greasemonkey
if ('GM_BrowserUI' in window && 'openInTab' in GM_BrowserUI) {
eval('GM_BrowserUI.openInTab = '+
GM_BrowserUI.openInTab.toSource().replace(
'document.getElementById("content")',
'TreeStyleTabService.readyToOpenChildTab($&); $&'
)
);
}
}; };