aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--matanico.js32
-rw-r--r--nicontroller.js12
-rw-r--r--reading.js8
3 files changed, 32 insertions, 20 deletions
diff --git a/matanico.js b/matanico.js
index 6bdd4c6..cfdb6e1 100644
--- a/matanico.js
+++ b/matanico.js
@@ -66,18 +66,20 @@
* let g:matanico_related_tag_servicename='またキーワードでニコニコタグ検索してる'
*
* HISTORY
- * 2008/06/14 v0.10 initial written.
- * 2008/06/27 v0.20 change replace argument to regexp with 'g' option.
- * add matanico! command.
- * refactoring
- * display sended status if succeed.
- * 2008/06/28 v0.21 change display strings, 'Yanked ' and 'Posted '
- * 2008/07/13 v0.30 change xpath function and xpath query
- * 2008/07/14 v0.40 change url checking
- * 2008/07/15 v0.50 make NicoScraper class
- * add function to post tag page
- * refer : http://nicovideo.g.hatena.ne.jp/koizuka/20080322/matanico_tag
- * 2008/09/04 v0.60 add function to post related tag page
+ * 2008/06/14 ver. 0.10 - initial written.
+ * 2008/06/27 ver. 0.20 - change replace argument to regexp with 'g' option.
+ * - add matanico! command.
+ * - refactoring
+ * - display sended status if succeed.
+ * 2008/06/28 ver. 0.21 - change display strings, 'Yanked ' and 'Posted '.
+ * 2008/07/13 ver. 0.30 - change xpath function and xpath query.
+ * 2008/07/14 ver. 0.40 - change url checking.
+ * 2008/07/15 ver. 0.50 - make NicoScraper class.
+ * - add function to post tag page.
+ * refer : http://nicovideo.g.hatena.ne.jp/koizuka/20080322/matanico_tag
+ * 2008/09/04 ver. 0.60 - add function to post related tag page.
+ * 2008/10/08 ver. 0.61 - correspond vimperator specification
+ * "bang" in extra object on addUserCommand.
* */
(function() {
@@ -246,7 +248,7 @@ liberator.commands.addUserCommand(['matanico'], "update Twitter's status to curr
// twitter's URL to post
var domain = 'http://twitter.com/';
- var postURL = 'http://twitter.com/statuses/update.json';
+ var postURL = 'https://twitter.com/statuses/update.json';
// get user account for twitter
var [user, pass] = getUserAccount(domain, postURL, null);
@@ -271,7 +273,9 @@ liberator.commands.addUserCommand(['matanico'], "update Twitter's status to curr
}
},
// complete logic is none.
- {}
+ {
+ bang: true,
+ }
);
// stuff functions
diff --git a/nicontroller.js b/nicontroller.js
index 29adea9..a519c0c 100644
--- a/nicontroller.js
+++ b/nicontroller.js
@@ -4,7 +4,7 @@
* @description this script give you keyboard opration for nicovideo.jp.
* @description-ja ニコニコ動画のプレーヤーをキーボードで操作できるようにする。
* @author janus_wel <janus_wel@fb3.so-net.ne.jp>
- * @version 0.51
+ * @version 0.52
* @minversion 1.2
* ==VimperatorPlugin==
*
@@ -66,6 +66,8 @@
* - use Error object when throw exception.
* - extract constant variables from code
* and define in NicoPlayerController.constants.
+ * 2008/10/08 ver. 0.52 - correspond vimperator specification
+ * "bang" in extra object on addUserCommand.
* */
/*
@@ -473,7 +475,9 @@ liberator.commands.addUserCommand(
try { special ? controller.seekBy(arg) : controller.seekTo(arg); }
catch(e) { liberator.echoerr(e); }
},
- {}
+ {
+ bang: true,
+ }
);
liberator.commands.addUserCommand(
@@ -483,7 +487,9 @@ liberator.commands.addUserCommand(
try { special ? controller.volumeBy(arg) : controller.volumeTo(arg); }
catch(e) { liberator.echoerr(e); }
},
- {}
+ {
+ bang: true,
+ }
);
liberator.commands.addUserCommand(
diff --git a/reading.js b/reading.js
index d81449b..d8a7845 100644
--- a/reading.js
+++ b/reading.js
@@ -1,4 +1,4 @@
-/**
+/*
* ==VimperatorPlugin==
* @name reading.js
* @description update Twitter's status to current URL and comment
@@ -131,7 +131,9 @@ liberator.commands.addUserCommand(['reading'], "update Twitter's status to curre
}
},
// complete logic is none.
- { bang: true }
+ {
+ bang: true,
+ }
);
// stuff functions
@@ -162,7 +164,7 @@ function $s(query, node) {
}
function canonicalizeURL(url) {
- const PATHTRAQ_CANONICALIZE_URL_API = 'http://api.pathtraq.com/normalize_url2?api=json;url=';
+ const PATHTRAQ_CANONICALIZE_URL_API = 'http://api.pathtraq.com/normalize_url2?api=json&url=';
var req = new XMLHttpRequest();
req.open('GET', PATHTRAQ_CANONICALIZE_URL_API + encodeURI(url), false);