>>953
// ==UserScript==
// @name toolbar-at-either-end-of-tabbar.uc.js
// @description タブバーの両端にツールバーを追加
// @include main
// @compatibility Firefox 2.0 WinXP
// @version LastMod 2007/07/22 17::30
// @note このスクリプトを実行する前に, ツールバーカスタマイズにおいてtabtoolbar-leftおよびtabtoolbar-rightという名前でツールバーを作成し, それぞれにツールボタンを配置しておく事。
// @note 配置後, このスクリプトを有効にしてFxを再起動する。
// ==/UserScript==
(function(){
var tabbrowser = document.getElementById('content');
var tabbrowserstrip = document.getAnonymousElementByAttribute(tabbrowser, 'anonid', 'strip');
var tabs = document.getAnonymousElementByAttribute(tabbrowser, 'anonid', 'tabcontainer');
try{
var toolboxLeft = document.createElement("toolbox");
var tabtoolbarLeft = document.getElementById('__customToolbar_tabtoolbar-left');
toolboxLeft.appendChild(tabtoolbarLeft);
tabbrowserstrip.insertBefore(toolboxLeft,tabs);
}catch(e){}
try{
var toolboxright = document.createElement("toolbox");
var tabtoolbarright = document.getElementById('__customToolbar_tabtoolbar-right');
toolboxright.appendChild(tabtoolbarright);
tabbrowserstrip.appendChild(toolboxright);
}catch(e){}
})();