Mozilla Firefox質問スレッド(初心者歓迎)の67 at SOFTWARE
[2ch|▼Menu]
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