aboutsummaryrefslogtreecommitdiffstats
path: root/foxage2ch.js
diff options
context:
space:
mode:
authoranekos2010-05-11 12:04:55 +0000
committeranekos2010-05-11 12:04:55 +0000
commite71f7c6ad21faa6b1172e74cd3312231bc9145aa (patch)
tree4d13f1f2429fb1875df168fca1f6e589bd92b939 /foxage2ch.js
parent210fda90f564ec537f39d8511a20dec59296541b (diff)
downloadvimperator-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-xfoxage2ch.js12
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];