07/09/01 02:30:27 XZSzST0m0
>>317
ツール→アドオン(ダウンロード)の所は無理だね。
なので、さくっと弄ってみた。
<script type="application/x-javascript" xmlns="URLリンク(www.w3.org)
<![CDATA[
var menu = document.getElementsByAttribute("label", "\u30a2\u30c9\u30aa\u30f3")[0];
if(menu) {
menu.setAttribute("oncommand", "toggleSidebar('viewAddonsSidebar');");
menu.removeAttribute("command");
}
var menu = document.getElementsByAttribute("label", "\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9")[0];
if(menu) {
menu.setAttribute("oncommand", "toggleSidebar('viewDownloadsSidebar');");
menu.removeAttribute("command");
}
var menu = document.getElementById("downloads-button");
if(menu) {
menu.setAttribute("oncommand", "toggleSidebar('viewDownloadsSidebar');");
menu.removeAttribute("command");
}
]]>
</script>
を</menupopup>と</overlay>の間に挿入してください。
ついでにツールバーボタンのダウンロードの方もサイドバー表示するようにしておいた。
ちなみにlabel取得なのはFx2では両方ともIDが振られてないから……。なので、>>306みたいな事してlabel弄ってたり、別言語版だと動かないかと思われます。
Fx3だとIDが割り振られてるんだけどなぁ……。