Mouse Gestures スクリプトを変更
zeniko's userChrome.jsに置いてあるものに変更した。タイムアウトやジェスチャ名表示されて良い感じ。
以下のようにジェスチャを定義した。
// 戻る "L": ["\u623b\u308b", "Browser:Back"], // 進む "R": ["\u9032\u3080", "Browser:Forward"], // 更新 "UD": ["\u66f4\u65b0", "Browser:Reload"], // キャッシュを無視して更新 "UDU": ["\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u7121\u8996\u3057\u3066\u66f4\u65b0", "Browser:ReloadSkipCache"], // タブを閉じる "DR": ["\u30bf\u30d6\u3092\u9589\u3058\u308b", "cmd_close"], // 閉じたタブを元に戻す "DL": ["\u9589\u3058\u305f\u30bf\u30d6\u3092\u5143\u306b\u623b\u3059", "History:UndoCloseTab"], // 前のタブへ "UL": ["\u524d\u306e\u30bf\u30d6\u3078", 'gBrowser.tabContainer.advanceSelectedTab(-1, true);'], // 次のタブへ "UR": ["\u6b21\u306e\u30bf\u30d6\u3078", 'gBrowser.tabContainer.advanceSelectedTab(+1, true);'], // ページ先頭へスクロール "RU": ["\u30da\u30fc\u30b8\u5148\u982d\u3078\u30b9\u30af\u30ed\u30fc\u30eb", 'goDoCommand("cmd_scrollTop");'], // ページ末尾へスクロール "RD": ["\u30da\u30fc\u30b8\u672b\u5c3e\u3078\u30b9\u30af\u30ed\u30fc\u30eb", 'goDoCommand("cmd_scrollBottom");'], // ページアップ "U": ["\u30da\u30fc\u30b8\u30a2\u30c3\u30d7", 'goDoCommand("cmd_scrollPageUp");'], // ページダウン "D": ["\u30da\u30fc\u30b8\u30c0\u30a6\u30f3", 'goDoCommand("cmd_scrollPageDown");'], // 縮小 "LRL": ["\u7e2e\u5c0f", "cmd_fullZoomReduce"], // 拡大 "RLR": ["\u62e1\u5927", "cmd_fullZoomEnlarge"], // 原寸 "DU": ["\u539f\u5bf8", "cmd_fullZoomReset"], // 画像を拡大 "RULD": ["\u753b\u50cf\u3092\u62e1\u5927", 'var node = aEvent.target; if(node instanceof HTMLImageElement){if(!node.hasAttribute("width")){node.setAttribute("width", node.naturalWidth);} if(!node.hasAttribute("height")){node.setAttribute("height", node.naturalHeight);} if(!node.hasAttribute("originalWidth")){node.setAttribute("originalWidth", node.width);node.setAttribute("originalHeight", node.height);}node.width = node.width * 1.5;node.height = node.height * 1.5;}'], // 画像を縮小 "LURD": ["\u753b\u50cf\u3092\u7e2e\u5c0f", 'var node = aEvent.target; if(node instanceof HTMLImageElement){ if(!node.hasAttribute("width")){node.setAttribute("width", node.naturalWidth);} if(!node.hasAttribute("height")){node.setAttribute("height", node.naturalHeight);} if(!node.hasAttribute("originalWidth")){node.setAttribute("originalWidth", node.width); node.setAttribute("originalHeight", node.height);} node.width = node.width * 0.5; node.height = node.height * 0.5;}'], // 画像を原寸 "RDLU": ["\u753b\u50cf\u3092\u539f\u5bf8", 'var node = aEvent.target; if(node instanceof HTMLImageElement){ if(node.hasAttribute("originalWidth")){node.width = node.getAttribute("originalWidth"); node.height = node.getAttribute("originalHeight");}}'], // ひとつ上の階層へ移動 "LU": ["\u3072\u3068\u3064\u4e0a\u306e\u968e\u5c64\u3078\u79fb\u52d5", 'var uri = gBrowser.currentURI; if(uri.path != "/"){var pathList = uri.path.split("/"); if (!pathList.pop()){pathList.pop();} loadURI(uri.prePath + pathList.join("/") + "/");}'],
快適ですとも!