From 32c52d8a9b7821e87fddfc1fc43a8a17bc78094b Mon Sep 17 00:00:00 2001
From: anekos
Date: Sat, 12 Dec 2009 10:42:40 +0000
Subject: アメーバなうの変更に手抜き対応
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36127 d0d07461-0603-4401-acd4-de1884942a52
---
amebanow.js | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
(limited to 'amebanow.js')
diff --git a/amebanow.js b/amebanow.js
index f054335..cf93075 100755
--- a/amebanow.js
+++ b/amebanow.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
Amebaなう
nau
Amebaなうする
- 1.0.3
+ 1.0.4
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -59,7 +59,7 @@ let PLUGIN_INFO =
// }}}
// INFO {{{
let INFO =
-
@@ -83,9 +83,26 @@ let INFO =
(function () {
- function now (msg) {
+ function getToken (onSuccess) {
+ const url = 'http://now.ameba.jp/';
+ let req = new plugins.libly.Request(url);
+ req.addEventListener(
+ 'onSuccess',
+ function (res) {
+ let m = res.responseText.match(/