From e71f7c6ad21faa6b1172e74cd3312231bc9145aa Mon Sep 17 00:00:00 2001
From: anekos
Date: Tue, 11 May 2010 12:04:55 +0000
Subject: コマンドのprefixを設定できるように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37451 d0d07461-0603-4401-acd4-de1884942a52
---
foxage2ch.js | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
(limited to 'foxage2ch.js')
diff --git a/foxage2ch.js b/foxage2ch.js
index d384969..0b6e00e 100755
--- a/foxage2ch.js
+++ b/foxage2ch.js
@@ -65,8 +65,8 @@ let INFO =
-
- :faopen
- :faopen
+ :foxageopen
+ :foxageopen
@@ -80,8 +80,8 @@ let INFO =
-
- :faopen
- :faopen
+ :foxageopen
+ :foxageopen
@@ -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];
--
cgit v1.2.3