Re: [-Fx-] Chrome的Smooth Gestures的Split Tabs
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Browsers 近期熱門文章
PTT數位生活區 即時熱門文章