From 09a37d2d9584631b985a73d40c5d4eb84f0d3596 Mon Sep 17 00:00:00 2001 From: anekos Date: Sat, 11 Dec 2010 02:12:53 +0900 Subject: :tw!? を機能するように修正 --- twittperator.js | 17 +++++++++++------ 1 file 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 = Twittperator Twitter Client using OAuth and Streaming API OAuth/StreamingAPI対応Twitterクライアント - 1.11.0 + 1.11.1 2.3 3.0 teramako @@ -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.") + } } }); }, // }}} -- cgit v1.2.3