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:
parent
d1a37d9c75
commit
7f63b79fc5
@ -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($&); $&'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user