異なるドメインに対して開かれるタブを子タブにする設定を設けた

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1832 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-02-22 17:32:36 +00:00
parent a3a6bbf50e
commit 8c5c96ff41
6 changed files with 16 additions and 1 deletions

View File

@ -181,6 +181,9 @@
<preference id="extensions.treestyletab.urlbar.loadDifferentDomainToNewTab"
name="extensions.treestyletab.urlbar.loadDifferentDomainToNewTab"
type="bool"/>
<preference id="extensions.treestyletab.urlbar.loadDifferentDomainToNewTab.asChild"
name="extensions.treestyletab.urlbar.loadDifferentDomainToNewTab.asChild"
type="bool"/>
<preference id="extensions.treestyletab.urlbar.loadSameDomainToNewChildTab"
name="extensions.treestyletab.urlbar.loadSameDomainToNewChildTab"
type="bool"/>
@ -223,9 +226,14 @@
<groupbox>
<caption label="&config.urlbar.caption;"/>
<vbox>
<hbox align="center">
<checkbox id="extensions.treestyletab.urlbar.loadDifferentDomainToNewTab-check"
preference="extensions.treestyletab.urlbar.loadDifferentDomainToNewTab"
label="&config.urlbar.loadDifferentDomainToNewTab;"/>
<checkbox id="extensions.treestyletab.urlbar.loadDifferentDomainToNewTab.asChild-check"
preference="extensions.treestyletab.urlbar.loadDifferentDomainToNewTab.asChild"
label="&config.urlbar.loadDifferentDomainToNewTab.asChild;"/>
</hbox>
<checkbox id="extensions.treestyletab.urlbar.loadSameDomainToNewChildTab-check"
preference="extensions.treestyletab.urlbar.loadSameDomainToNewChildTab"
label="&config.urlbar.loadSameDomainToNewChildTab;"/>

View File

@ -902,7 +902,10 @@ catch(e) {
<><![CDATA[
TreeStyleTabService.checkReadyToOpenNewTab({
uri : url,
external : { newTab : TreeStyleTabService.getTreePref('urlbar.loadDifferentDomainToNewTab') },
external : {
newTab : TreeStyleTabService.getTreePref('urlbar.loadDifferentDomainToNewTab'),
forceChild : TreeStyleTabService.getTreePref('urlbar.loadDifferentDomainToNewTab.asChild')
},
internal : { newTab : TreeStyleTabService.getTreePref('urlbar.loadSameDomainToNewChildTab') },
modifier : aTriggeringEvent && aTriggeringEvent.altKey,
invert : TreeStyleTabService.getTreePref('urlbar.invertDefaultBehavior')

View File

@ -34,6 +34,7 @@ pref("extensions.treestyletab.openOuterLinkInNewTab", false);
pref("extensions.treestyletab.openAnyLinkInNewTab", false);
pref("extensions.treestyletab.link.invertDefaultBehavior", true);
pref("extensions.treestyletab.urlbar.loadDifferentDomainToNewTab", true);
pref("extensions.treestyletab.urlbar.loadDifferentDomainToNewTab.asChild", false);
pref("extensions.treestyletab.urlbar.loadSameDomainToNewChildTab", true);
pref("extensions.treestyletab.urlbar.invertDefaultBehavior", true);
pref("extensions.treestyletab.loadDroppedLinkToNewChildTab", false);

View File

@ -36,6 +36,7 @@
<!ENTITY config.urlbar.caption "Action for entering URI to the location bar">
<!ENTITY config.urlbar.loadDifferentDomainToNewTab "Load into new tab if it is a different website">
<!ENTITY config.urlbar.loadDifferentDomainToNewTab.asChild "as a child of the current tab">
<!ENTITY config.urlbar.loadSameDomainToNewChildTab "Load into new child tab if it is the same website">
<!ENTITY config.loadDroppedLinkToNewChildTab.caption "Action for drag drop of links or URLs to existing tab">

View File

@ -36,6 +36,7 @@
<!ENTITY config.urlbar.caption "L&apos;inserimento di un indirizzo nella barra degli indirizzi">
<!ENTITY config.urlbar.loadDifferentDomainToNewTab "Apre una nuova scheda se appartiene a un sito web differente">
<!ENTITY config.urlbar.loadDifferentDomainToNewTab.asChild "as a child of the current tab">
<!ENTITY config.urlbar.loadSameDomainToNewChildTab "Apre una nuova scheda figlia se appartiene allo stesso sito web">
<!ENTITY config.loadDroppedLinkToNewChildTab.caption "Il trascinamento di collegamenti o indirizzi su una scheda esistente">

View File

@ -36,6 +36,7 @@
<!ENTITY config.urlbar.caption "ロケーションバーへの入力">
<!ENTITY config.urlbar.loadDifferentDomainToNewTab "異なるサイトのURIを新しいタブで開く">
<!ENTITY config.urlbar.loadDifferentDomainToNewTab.asChild "現在のタブの子にする">
<!ENTITY config.urlbar.loadSameDomainToNewChildTab "同じサイトのURIを新しい子タブで開く">
<!ENTITY config.loadDroppedLinkToNewChildTab.caption "リンクやURLをタブにドラッグドロップした時">