firefox userChrome.js greasemonkeyスクリプトスレ 2
■ このスレッドは過去ログ倉庫に格納されています
0320名無しさん@お腹いっぱい。
2007/09/01(土) 02:30:27ID:XZSzST0m0ツール→アドオン(ダウンロード)の所は無理だね。
なので、さくっと弄ってみた。
<script type="application/x-javascript" xmlns="http://www.w3.org/1999/xhtml">
<![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が割り振られてるんだけどなぁ……。
■ このスレッドは過去ログ倉庫に格納されています