Re: [-Fx-] Chrome的Smooth Gestures的Split Tabs

看板Browsers (瀏覽器)作者 (厚呦)時間12年前 (2013/09/16 20:00), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《kaoh08 (AIR -the 1000th summer-)》之銘言: : Smooth Gestures裡的 Split Tabs手勢: : Split all tabs to the right of (and including) the current tab into a new : window : 把在右邊的分頁移到新的視窗 : Firefox的手勢都沒有這選項,也找不到對應套件。 let replaceRightTabsWithWindow = function(){ let childNodes = gBrowser.visibleTabs, aTab = gBrowser.mCurrentTab, index = childNodes.indexOf(gBrowser.tabs.item(aTab._tPos)), newWindow = gBrowser.replaceTabWithWindow(aTab); newWindow.addEventListener("load", function(){ while (++index < childNodes.length){ newWindow.gBrowser.swapBrowsersAndCloseOther( newWindow.gBrowser.addTab(), childNodes[index]); } }); }; replaceRightTabsWithWindow(); -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.255.217.64

09/16 21:43, , 1F
挖喔 大感謝!
09/16 21:43, 1F

09/16 21:57, , 2F
還上色 真是貼心
09/16 21:57, 2F
文章代碼(AID): #1IDlBEkg (Browsers)
文章代碼(AID): #1IDlBEkg (Browsers)