Mozilla Firefox質問スレッド(初心者歓迎)の67
at SOFTWARE
202:名無しさん@お腹いっぱい。
08/06/25 23:45:25 y5nForB/0
>>183
ツールボタン中ボタンで別ウィンドウで開くスクリプト書いた。userChrome.js用
(function(){
var sageButton = document.getElementById("sage-button");
if(!sageButton) return;
sageButton.addEventListener("click", function(event){
if(event.button != 1) return;
var it = Cc["@mozilla.org/appshell/window-mediator;1"]
.getService(Ci.nsIWindowMediator).getEnumerator(null);
while(it.hasMoreElements()){
var win = it.getNext(), id = win.document.documentElement.id;
if(id == "pageSagePanel" || id == "sagePanel"){ win.focus(); return; }}
window.openDialog("chrome://sage/content/sage.xul","sageWin",
"width=202,height=500,chrome,dialog=no,resizable,alwaysRaised");
}, false);
})();
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5495日前に更新/120 KB
担当:undef