Tab Mix Plusとの組み合わせ時にツリー型タブ側の「リンクをすべてタブで開く」機能が働いていなかったようだったので対策
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6604 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
d6aa9386c6
commit
6844c180e8
@ -334,6 +334,29 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function TSTService_override
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
eval('window.TMP_contentAreaClick = '+
|
||||||
|
window.TMP_contentAreaClick.toSource().replace(
|
||||||
|
'if (openT)',
|
||||||
|
<![CDATA[if (TreeStyleTabService.checkReadyToOpenNewTab({
|
||||||
|
uri : linkNode.href,
|
||||||
|
external : {
|
||||||
|
newTab : TreeStyleTabService.getTreePref('openOuterLinkInNewTab') || TreeStyleTabService.getTreePref('openAnyLinkInNewTab'),
|
||||||
|
forceChild : true
|
||||||
|
},
|
||||||
|
internal : {
|
||||||
|
newTab : TreeStyleTabService.getTreePref('openAnyLinkInNewTab')
|
||||||
|
}
|
||||||
|
})) {
|
||||||
|
event.stopPropagation();
|
||||||
|
event.preventDefault();
|
||||||
|
handleLinkClick(event, linkNode.href, linkNode);
|
||||||
|
return true;
|
||||||
|
} else $&]]>
|
||||||
|
)
|
||||||
|
);
|
||||||
|
if (/\(?function TMP_contentAreaClick\(/.test(window.contentAreaClick.toSource()))
|
||||||
|
window.contentAreaClick = window.TMP_contentAreaClick;
|
||||||
|
|
||||||
gBrowser.mTabContainer.removeEventListener('DOMNodeInserted', tabxTabAdded, true);
|
gBrowser.mTabContainer.removeEventListener('DOMNodeInserted', tabxTabAdded, true);
|
||||||
eval('window.tabxTabAdded = '+
|
eval('window.tabxTabAdded = '+
|
||||||
window.tabxTabAdded.toSource().replace(
|
window.tabxTabAdded.toSource().replace(
|
||||||
|
Loading…
Reference in New Issue
Block a user