にっき

2008/06/22 23:33:42

かるしうむぶそく?


なんだかこのごろましにすとさんの予定がど〜るわ〜か〜さんになってたり,
職業訓練本を読み忘れてたり,装備や戦闘設定をするの忘れてたり,
移動した直後に間違えて元の場所に戻ったり,装備設定を送信し忘れたり,
次まで後2桁なんだからLvあっぷするって確認したのに着替え忘れてたり・・・
ってなんだかみょ〜にいろんなとこで細かいみすいっぱいにう(´・ω・`;【みかん
あったかくなってきてねむねむだし集中力切れかけてるのかにゃぁ・・・



それにしてもきつねたんのそ〜すを外部えでぃたで表示する設定ってなんで
拡張か about :config 使わないと設定できないようになってるのかにゃぁ?
そんなこんなで設定してみたけど・・・
ゆ〜ざ名に全角があるせいかぱすが化けて見つかりませんになるにう(つx;【みかん
GMScript の編集もおんなじ状況になってるしやっぱり全角の混じるぱすってびみょ〜だにゃぁ・・・
むうみんも普段はほとんど使わないんだけどにう(´・ω・`;【みかん
独自きゃっしゅを生成してるおかげで WebDeveloper 経由でなら見れるからいいのかなぁ?

とりあえずゆ〜ざすくりぷとをめもめも☆
XULDEV.ORG の簡易まうすじぇすちゃをべ〜すに
var ucjsMouseGestures = {

  _lastX: 0,
  _lastY: 0,
  _directionChain: "",

  _gestures :
  {
    LRL :
    {
      name : 'Back',
      func : function(eve){document.getElementById("Browser:Back").doCommand();}
    },
    RLR :
    {
      name : 'Forward',
      func : function(eve){document.getElementById("Browser:Forward").doCommand();}
    },
    LURD :
    {
      name : 'Close Tab',
      func : function(eve){document.getElementById("cmd_close").doCommand();}
    },
    UL :
    {
      name : 'Previous Tab',
      func : function(eve){gBrowser.mTabContainer.advanceSelectedTab(-1, true);}
    },
    UR :
    {
      name : 'Next Tab',
      func : function(eve){gBrowser.mTabContainer.advanceSelectedTab(+1, true);}
    },
    U :
    {
      name : 'Scroll Top',
      func : function(eve){goDoCommand("cmd_scrollTop");}
    },
    D :
    {
      name : 'Scroll Bottom',
      func : function(eve){goDoCommand("cmd_scrollBottom");}
    },
    L :
    {
      name : 'Page Up',
      func : function(eve){goDoCommand("cmd_scrollPageUp");}
    },
    R :
    {
      name : 'Page Down',
      func : function(eve){goDoCommand("cmd_scrollPageDown");}
    },
    DRUL :
    {
      name : 'AddBookmark',
      func : function(eve){document.getElementById("Browser:AddBookmarkAs").doCommand();}
    },
    RDL :
    {
      name : 'Toggle Bookmark Sidebar',
      func : function(eve){toggleSidebar("viewBookmarksSidebar");}
    },
    DLU :
    {
      name : 'Download',
      func : function(eve){document.getElementById("Tools:Downloads").doCommand();}
    },
    URUL :
    {
      name : 'LaunchIE',
      func : function(eve)
      {
        var allowSchemes = ['file','ftp','http','https'];
        var uri = gBrowser.currentURI;
        if(allowSchemes.indexOf(uri.scheme) == -1)
        {
          throw new Error('LaunchIE: unsupproted URI scheme "' + uri.scheme +'"');
        }
        
        var ie = Components.classes['@mozilla.org/file/local;1'].createInstance(
          Components.interfaces.nsILocalFile
        );
        ie.initWithPath((Components.classes['@mozilla.org/process/environment;1'].getService(
          Components.interfaces.nsIEnvironment
        ).get('PROGRAMFILES') || 'C:\\Program Files') + '\\Internet Explorer\\iexplore.exe');
        var process = Components.classes['@mozilla.org/process/util;1'].createInstance(
          Components.interfaces.nsIProcess
        );
        process.init(ie);
        process.run(false,[uri.spec],1);
      }
    }
  },

  init: function()
  {
    if(typeof gBrowser != 'undefined')
    {
      gBrowser.mPanelContainer.addEventListener("mousedown", this, false);
      gBrowser.mPanelContainer.addEventListener("mousemove", this, false);
      gBrowser.mPanelContainer.addEventListener("mouseup", this, false);
      gBrowser.mPanelContainer.addEventListener("contextmenu", this, true);
    }
  },

  uninit: function()
  {
    if(typeof gBrowser != 'undefined')
    {
      gBrowser.mPanelContainer.removeEventListener("mousedown", this, false);
      gBrowser.mPanelContainer.removeEventListener("mousemove", this, false);
      gBrowser.mPanelContainer.removeEventListener("mouseup", this, false);
      gBrowser.mPanelContainer.removeEventListener("contextmenu", this, true);
    }
  },

  _isMouseDown: false,
  _suppressContext: false,
  _shouldFireContext: false,  // for Linux

  handleEvent: function(event)
  {
    switch (event.type) {
      case "mousedown":
        if (event.button == 2) {
          this._isMouseDown = true;
          this._startGesture(event);
        }
        break;
      case "mousemove":
        if (this._isMouseDown) {
          this._progressGesture(event);
        }
        break;
      case "mouseup":
        if (this._isMouseDown) {
          this._isMouseDown = false;
          this._suppressContext = !!this._directionChain;
          this._stopGesture(event);
          if (this._shouldFireContext) {
            this._shouldFireContext = false;
            this._displayContextMenu(event);
          }
        }
        break;
      case "contextmenu":
        if (this._suppressContext || this._isMouseDown) {
          this._suppressContext = false;
          event.preventDefault();
          event.stopPropagation();
          if (this._isMouseDown) {
            this._shouldFireContext = true;
          }
        }
        break;
    }
  },

  _displayContextMenu: function(event)
  {
    var evt = event.originalTarget.ownerDocument.createEvent("MouseEvents");
    evt.initMouseEvent(
      "contextmenu", true, true, event.originalTarget.defaultView, 0,
      event.screenX, event.screenY, event.clientX, event.clientY,
      false, false, false, false, 2, null
    );
    event.originalTarget.dispatchEvent(evt);
  },

  _startGesture: function(event)
  {
    this._lastX = event.screenX;
    this._lastY = event.screenY;
    this._directionChain = "";
  },

  _progressGesture: function(event)
  {
    var x = event.screenX;
    var y = event.screenY;
    var distanceX = Math.abs(x - this._lastX);
    var distanceY = Math.abs(y - this._lastY);
    // minimal movement where the gesture is recognized
    const tolerance = 10;
    if (distanceX < tolerance && distanceY < tolerance)
      return;
    // determine current direction
    var direction;
    if (distanceX > distanceY)
      direction = x < this._lastX ? "L" : "R";
    else
      direction = y < this._lastY ? "U" : "D";
    // compare to last direction
    var lastDirection = this._directionChain.charAt(this._directionChain.length - 1);
    if (direction != lastDirection) {
      this._directionChain += direction;
      XULBrowserWindow.statusTextField.label = "Gesture: " + this._directionChain;
      try
      {
        XULBrowserWindow.statusTextField.label +=
          ' <' + this._gestures[this._directionChain].name + '>';
      }
      catch(e)
      {
      }
    }
    // save current position
    this._lastX = x;
    this._lastY = y;
  },

  _stopGesture: function(event)
  {
    try
    {
      if (this._directionChain)
      {
        try
        {
          this._gestures[this._directionChain].func(event);
        }
        catch(e)
        {
          throw "Unknown Gesture: " + this._directionChain;
        }
      }
      XULBrowserWindow.statusTextField.label = "";
    }
    catch(ex) {
      XULBrowserWindow.statusTextField.label = ex;
    }
    this._directionChain = "";
  }
};

// Entry Point
ucjsMouseGestures.init();
window.addEventListener("unload", function(){ ucjsMouseGestures.uninit(); }, false);
ほとんど原型が残ってないのはたぶんきっといつものことにう d(´ω`;【みかん
じぇすちゃの中身は自分用にかすたむするとこだから置いといて☆
つい設定方法をもっさり交換しちゃったにう(´・ω・`;【みかん
でもでも現在のじぇすちゃ名を表示できるようにぱわ〜あっぷ・・・にう?
現状で設定してあるのは
←→←:戻る
→←→:進む
←↑→↓:たぶを閉じる
↑←:左のたぶ
↑→:右のたぶ
↑:先頭に戻る
↓:最後に進む
←:1ぺ〜じ上に
→:1ぺ〜じ下に
↓→↑←:ぶっくま〜く
→↓←:ぶっくま〜くば〜
↓←↑:だうんろ〜どまね〜じゃ
↑→↑←:IEで開く
こんなところかなぁ? 〆(・x・。【みかん

はじめはIEで開くのをなんとなく『URL』な『↑→←』にしてたけど・・・
すてきに誤爆しやすくてだめだめだったにう(つx;【みかん


こめんと

こめんとする?



 
投稿された内容の著作権はこめんとの投稿者に帰属するっぽいです☆
また,現在 IE6 以下で Sleipnir,Lunascape,Donut じゃないゆ〜ざえ〜じぇんとからの描き込みを制限してますです☆
該当しちゃうかたはてきとうにゆ〜ざえ〜じぇんとを偽装しちゃってくださいです(´ω`;【みかん
さぶこんてんつ
前月 2024年 4月 翌月
  1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
       
             
  • あじ あじ
  • ED ED
  • えでん えでん
  • えれふぃ えれふぃ
  • ぐらぶれ ぐらぶれ
  • etc etc
  • にっき にっき

あわせて読みたい

先頭に戻る
めにう 先頭に戻る