diff --git a/content/treestyletab/windowHelperHacks.js b/content/treestyletab/windowHelperHacks.js index 80cff0c8..1f7b52e5 100644 --- a/content/treestyletab/windowHelperHacks.js +++ b/content/treestyletab/windowHelperHacks.js @@ -524,6 +524,20 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove ); } + // DragIt + // https://addons.mozilla.org/firefox/addon/dragit-formerly-drag-de-go/ + if ('DragIt' in window && + DragIt.tab && + DragIt.tab.open && + TreeStyleTabUtils.getTreePref('compatibility.DragIt')) { + eval('DragIt.tab.open = '+ + DragIt.tab.open.toSource().replace( + 'try {', + 'try { TreeStyleTabService.readyToOpenChildTabNow(gBrowser);' + ) + ); + } + // Colorful Tabs // https://addons.mozilla.org/firefox/addon/1368 if ('colorfulTabs' in window && diff --git a/defaults/preferences/treestyletab.js b/defaults/preferences/treestyletab.js index f371e907..669b97d3 100644 --- a/defaults/preferences/treestyletab.js +++ b/defaults/preferences/treestyletab.js @@ -637,6 +637,7 @@ pref("extensions.treestyletab.compatibility.Autohide", true); pref("extensions.treestyletab.compatibility.ColorfulTabs", true); pref("extensions.treestyletab.compatibility.DomainTab", true); pref("extensions.treestyletab.compatibility.DragDeGo", true); +pref("extensions.treestyletab.compatibility.DragIt", true); pref("extensions.treestyletab.compatibility.DragNDropToolbars", true); pref("extensions.treestyletab.compatibility.DuplicateThisTab", true); pref("extensions.treestyletab.compatibility.FirefoxSync", true); diff --git a/history.en.md b/history.en.md index 195b1f66..5a1b566e 100644 --- a/history.en.md +++ b/history.en.md @@ -2,6 +2,7 @@ - master/HEAD * Works on Firefox 25 and later. + * Improved: New tab from [DragIt](https://addons.mozilla.org/firefox/addon/dragit-formerly-drag-de-go/) is opened as a child of the current tab. * Fixed: Don't shrink tab bar automatically, when the user selects a background tab. * Improved: Update label of Firefox's "Close Tabs to the Right" menu item to "Close Tabs to the Bottom" in the vertical tab bar. * Fixed: Don't break tree structure by drag and drop of a child tab to move it to the upper level. diff --git a/history.ja.md b/history.ja.md index 3e03cc41..ab1ea65d 100644 --- a/history.ja.md +++ b/history.ja.md @@ -2,6 +2,7 @@ - master/HEAD * Firefox 25に対応 + * [DragIt](https://addons.mozilla.org/firefox/addon/dragit-formerly-drag-de-go/)から開いたタブを現在のタブの子にするようにした * バックグラウンドのタブに切り替えた時に、タブの操作中にもかかわらずタブバーが自動的に折り畳まれる事があったのを修正 * Firefox自身の「右のタブを閉じる」機能について、メニュー項目のラベルを縦型タブバーでは「下のタブを閉じる」に変えるようにした * 子タブをドラッグしてひとつ上のレベルに移動する操作でツリー構造が壊れる場合があったのを修正