Squall Leonhart wrote:
Can't you guys move the left scroll arrow to the left of the tab bar? where it is now makes it hard to move a tab from one side of the screen to another.
i use this userchrome.js snippet to move the left scrollbutton and place the Open Tabs button (customize and place it anywhere, it gets lost on a new customize due to a known bug, so you have to drag it each time). modified from someone on the userchrome forum..
Code:
/* :::::::: TabMixPlus.js::::::::::::::: */
/*
:::::::: Moves the left scroll button of the tab bar to the far left,
:::::::: and places Opened Tabs button on the tabbar.
*/
(function () {
var tabsframe = document.getElementById('scroll-tabs-frame');
if(null == tabsframe) return;
tmp = tabsframe.nextSibling;
while(tmp.className != 'tabs-scroll')
tmp = tmp.nextSibling;
var scroll_left = tmp.lastChild;
var scroll_right = tmp.nextSibling.firstChild;
var tabs_alltabs = document.getElementById('btn_tabslist');
var el = document.getElementById('tabs-newTab').parentNode;
el.replaceChild(tabs_alltabs, el.firstChild);
var e2 = tabsframe.parentNode.childNodes[1];
e2.insertBefore(scroll_left.parentNode, e2.firstChild);
scroll_left.addEventListener("command", function(event) { gBrowser.mTabContainer.collapsedTabs--; }, false);
var tabbar = getBrowser().mTabContainer;
tabbar.__defineSetter__('canScrollTabsLeft',
function (val) {
if(val != this.canScrollTabsLeft) {
if(val) this.removeAttribute("disableScrollTabsLeft");
else this.setAttribute("disableScrollTabsLeft","true");
}
scroll_left.disabled = !val;
return val;
}
);
tabbar.__defineSetter__('canScrollTabsRight',
function (val) {
if(val != this.canScrollTabsRight) {
if(val) this.removeAttribute("disableScrollTabsRight");
else this.setAttribute("disableScrollTabsRight","true");
}
scroll_right.disabled = !val;
return val;
}
);
tabbar.canScrollTabsLeft = tabbar.childNodes[0].collapsed;
tabbar.ensureTabIsVisible(getBrowser().mCurrentTab._tPos);
tabbar.canScrollTabsRight = !tabbar.rightEnd;
})();