宣伝。日経LinuxにてLinuxの基礎?を紹介する漫画「シス管系女子」を連載させていただいています。 以下の特設サイトにて、単行本まんがでわかるLinux シス管系女子の試し読みが可能!
I have a feature request for Tree Style Tab.
I'd like to use horizontal tabs when I have 5 or less tabs open and then have Firefox automatically switch to vertical tabs when I have 6 or more tabs open. These numbers could obviously be variables in the settings, and the feature could just be toggled from the settings as well.
ツリー型タブへの機能追加の要望です。
タブの数が5つかそれより少ない時はタブを横置きにして、タブの数が6個以上になったらFirefoxが自動的にタブを縦置きに切り替える、という機能が欲しいです。また、タブの位置を切り替える基準のタブの数は簡単に設定できるようになっていて欲しいです。
I have no plan to implement the feature to Tree Style Tab itself, however, you can do it by a tiny script using TST's APIs like:
(function() {
var MAX_HORIZONTAL_TABS = 5;
var onTabModified = function() {
var newPosition;
if (gBrowser.tabContainer.childNodes.length > MAX_HORIZONTAL_TABS)
newPosition = 'left';
else
newPosition = 'top';
if (TreeStyleTabService.currentTabbarPosition != newPosition)
TreeStyleTabService.currentTabbarPosition = newPosition;
};
gBrowser.tabContainer
.addEventListener('TabOpen', onTabModified, false);
gBrowser.tabContainer
.addEventListener('TabClose', onTabModified, false);
onTabModified();
window.addEventListener('unload', function() {
window.removeEventListener('unload', arguments.callee, false);
gBrowser.tabContainer
.removeEventListener('TabOpen', onTabModified, false);
gBrowser.tabContainer
.removeEventListener('TabClose', onTabModified, false);
}, false);
})();
For example, you can use this script for the userChrome.js. Steps to do it:
そういう機能をツリー型タブ自体に付ける予定はないですが、ツリー型タブのAPIを使うと、上記のような小さいスクリプトでその機能を実現する事ができます。
例えば、このスクリプトはuserChrome.jsでそのまま利用できます。手順は以下の通りです:
の末尾に2020年11月30日時点の日本の首相のファミリーネーム(ローマ字で回答)を繋げて下さい。例えば「noda」なら、「2010-05-06_auto-switch.trackbacknoda」です。これは機械的なトラックバックスパムを防止するための措置です。
writeback message: Ready to post a comment.