Super DragAndGo、Drag de Goで開かれる新規タブを現在のタブの子にするようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1948 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
5c17ad8dcc
commit
d88c432de1
@ -457,4 +457,39 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
|
||||
|
||||
gBrowser.treeStyleTab.internallyTabMoving = true; // until "TMmoveTabTo" method is overwritten
|
||||
}
|
||||
|
||||
|
||||
// Super DragAndGo
|
||||
if ('superDrag' in window) {
|
||||
eval('superDrag.onDrop = '+
|
||||
superDrag.onDrop.toSource().replace(
|
||||
/(var newTab = getBrowser\(\).addTab\([^\)]+\);)/g,
|
||||
<><![CDATA[
|
||||
TreeStyleTabService.readyToOpenChildTab(getBrowser());
|
||||
$1
|
||||
]]></>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// Drag de Go
|
||||
if ('ddg_ges' in window) {
|
||||
eval('ddg_ges.Open = '+
|
||||
ddg_ges.Open.toSource().replace(
|
||||
'if (mode[1] == "h" || mode[1] == "f") {',
|
||||
<><![CDATA[$&
|
||||
TreeStyleTabService.readyToOpenChildTab(getBrowser());
|
||||
]]></>
|
||||
)
|
||||
);
|
||||
eval('ddg_ges.Search = '+
|
||||
ddg_ges.Search.toSource().replace(
|
||||
'if (mode[1] == "h" || mode[1] == "f") {',
|
||||
<><![CDATA[$&
|
||||
TreeStyleTabService.readyToOpenChildTab(getBrowser());
|
||||
]]></>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user