diff options
author | anekos | 2010-05-11 12:04:55 +0000 |
---|---|---|
committer | anekos | 2010-05-11 12:04:55 +0000 |
commit | e71f7c6ad21faa6b1172e74cd3312231bc9145aa (patch) | |
tree | 4d13f1f2429fb1875df168fca1f6e589bd92b939 /foxage2ch.js | |
parent | 210fda90f564ec537f39d8511a20dec59296541b (diff) | |
download | vimperator-plugins-e71f7c6ad21faa6b1172e74cd3312231bc9145aa.tar.bz2 |
コマンドのprefixを設定できるように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37451 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'foxage2ch.js')
-rwxr-xr-x | foxage2ch.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/foxage2ch.js b/foxage2ch.js index d384969..0b6e00e 100755 --- a/foxage2ch.js +++ b/foxage2ch.js @@ -65,8 +65,8 @@ let INFO = <project name="Vimperator" minVersion="2.4"/> <p></p> <item> - <tags>:faopen</tags> - <spec>:fao<oa>pen</oa></spec> + <tags>:foxageopen</tags> + <spec>:foxageo<oa>pen</oa></spec> <description><p></p></description> </item> </plugin> @@ -80,8 +80,8 @@ let INFO = <project name="Vimperator" minVersion="2.4"/> <p></p> <item> - <tags>:faopen</tags> - <spec>:fao<oa>pen</oa></spec> + <tags>:foxageopen</tags> + <spec>:foxageo<oa>pen</oa></spec> <description><p></p></description> </item> </plugin> @@ -92,6 +92,8 @@ let INFO = (function () { Components.utils.import("resource://foxage2ch/utils.jsm"); + + let cmdPrefix = liberator.globalVariables.foxage2ch_command_prefix || 'foxage'; let svc = FoxAge2chUtils.service; const Status = { @@ -123,7 +125,7 @@ let INFO = ); commands.addUserCommand( - ['fao[pen]'], + [cmdPrefix + 'o[pen]'], 'Open the borard from FoxAge2ch', function (args) { let thread = threads()[parseInt(args.literalArg.replace(/^.\s/, ''), 10) - 1]; |