Skip to content

Instantly share code, notes, and snippets.

@koki-h
Created March 5, 2009 05:21
Show Gist options
  • Save koki-h/74207 to your computer and use it in GitHub Desktop.
Save koki-h/74207 to your computer and use it in GitHub Desktop.
UxUのダイアログを:dia[log]コマンドで開けるようにします。
/**
* ==VimperatorPlugin==
* @name uxu_vimp
* @description Be able to open UxU interface from :dia[log].
* @description-ja UxUのダイアログを:dia[log]コマンドで開けるようにします。
* @author koki-h
* @version 0.1
* ==/VimperatorPlugin==
*/
//This script is based on http://vimperator.g.hatena.ne.jp/hogelog/20081213/1229199895
[
[ 'uxu_config', 'Open UxU configuration', //UxU設定ダイアログ
'chrome://uxu/content/ui/config.xul', 'resizable,width=200,height=700'],
['uxu_server', 'Open UxU server dialog', //UxUサーバ起動
'chrome://uxu/content/ui/uxu.xul', 'resizable,width=200,height=700'],
['uxu_mozunit', 'Open UxU testrunner', //UxUテストランナー起動
'chrome://uxu/content/ui/mozunit.xul', 'resizable,width=200,height=700'],
].forEach(function([name, description, uri, args]) config.dialogs.push([name, description, function() openDialog(uri, "_blank", args)]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment