aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
authoranekos2010-12-11 02:12:53 +0900
committeranekos2010-12-11 02:12:53 +0900
commit09a37d2d9584631b985a73d40c5d4eb84f0d3596 (patch)
treea333237a8d2b8f49f847b19c6498c1b6a63607d6 /twittperator.js
parentaab6a60568589b01d03fa5a57505764aecf48c40 (diff)
downloadvimperator-plugins-09a37d2d9584631b985a73d40c5d4eb84f0d3596.tar.bz2
:tw!? を機能するように修正
Diffstat (limited to 'twittperator.js')
-rw-r--r--twittperator.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/twittperator.js b/twittperator.js
index ea815c7..6091545 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -28,7 +28,7 @@ let PLUGIN_INFO =
<name>Twittperator</name>
<description>Twitter Client using OAuth and Streaming API</description>
<description lang="ja">OAuth/StreamingAPI対応Twitterクライアント</description>
- <version>1.11.0</version>
+ <version>1.11.1</version>
<minVersion>2.3</minVersion>
<maxVersion>3.0</maxVersion>
<author mail="teramako@gmail.com" homepage="http://d.hatena.ne.jp/teramako/">teramako</author>
@@ -1786,11 +1786,16 @@ let PLUGIN_INFO =
};
}
- tw.jsonGet("http://search.twitter.com/search", { q: word }, function(res) {
- if (res.results.length > 0) {
- Twittperator.showTL(res.results.map(Utils.fixStatusObject).map(konbuArt));
- } else {
- Twittperator.echo("No results found.")
+ Utils.xmlhttpRequest({
+ method: 'GET',
+ url: "http://search.twitter.com/search.json?" + tw.buildQuery({ q: word }),
+ onload: function(xhr) {
+ let res = JSON.parse(xhr.responseText);
+ if (res.results.length > 0) {
+ Twittperator.showTL(res.results.map(Utils.fixStatusObject).map(konbuArt));
+ } else {
+ Twittperator.echo("No results found.")
+ }
}
});
}, // }}}