Tabberwocky( https://addons.mozilla.org/firefox/addon/14439 )と連携するようにした
* タブバーの複数行表示を常に無効に * 選択されたリンクを子タブとして開くように git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5611 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
7c6cf341f0
commit
750d476813
@ -932,6 +932,36 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tabberwocky
|
||||||
|
// https://addons.mozilla.org/firefox/addon/14439
|
||||||
|
if ('multirow' in window &&
|
||||||
|
'updateMultiRowTabs' in multirow) {
|
||||||
|
eval('multirow.updateMultiRowTabs = '+
|
||||||
|
multirow.updateMultiRowTabs.toSource().replace(
|
||||||
|
'gBrowser.mPrefs.getBoolPref("tabberwocky.multirow")',
|
||||||
|
'$& && !gBrowser.treeStyleTab.isVertical'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
window.setTimeout('multirow.updateMultiRowTabs();', 0);
|
||||||
|
}
|
||||||
|
if ('tabberwocky' in window) {
|
||||||
|
if ('openSelectedLinks' in tabberwocky) {
|
||||||
|
eval('tabberwocky.openSelectedLinks = '+
|
||||||
|
tabberwocky.openSelectedLinks.toSource().replace(
|
||||||
|
'links.forEach(',
|
||||||
|
<![CDATA[
|
||||||
|
TreeStyleTabService.readyToOpenChildTab(aFrame, true)
|
||||||
|
$&]]>
|
||||||
|
).replace(
|
||||||
|
/(\}\)?)$/,
|
||||||
|
<![CDATA[
|
||||||
|
TreeStyleTabService.stopToOpenChildTab(aFrame)
|
||||||
|
$1]]>
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
window.setTimeout(function(aSelf) {
|
window.setTimeout(function(aSelf) {
|
||||||
aSelf.overrideExtensionsDelayed();
|
aSelf.overrideExtensionsDelayed();
|
||||||
}, 0, this);
|
}, 0, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user