aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--twitter.js8
-rw-r--r--wassr.js9
2 files changed, 9 insertions, 8 deletions
diff --git a/twitter.js b/twitter.js
index c20c49a..1594ec3 100644
--- a/twitter.js
+++ b/twitter.js
@@ -1,5 +1,5 @@
// Vimperator plugin: "Update Twitter"
-// Last Change: 22-Oct-2008. Jan 2008
+// Last Change: 11-Nov-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
//
@@ -100,7 +100,7 @@
var html = <style type="text/css"><![CDATA[
span.twitter.entry-content a { text-decoration: none; }
- img.twitter.photo { border; 0px; width: 16px; height: 16px; vertical-align: baseline; }
+ img.twitter.photo { border; 0px; width: 16px; height: 16px; vertical-align: baseline; margin: 1px; }
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
statuses.map(function(status)
@@ -110,9 +110,9 @@
title={status.user.screen_name}
class="twitter photo"/>
<strong>{status.user.name}&#x202C;</strong>
+ : <span class="twitter entry-content">{status.text}</span>
</>.toSource()
- .replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
- sprintf(': <span class="twitter entry-content">%s&#x202C;</span>', status.text))
+ .replace(/(?:\r?\n|\r)[ \t]*/g, " "))
.join("<br/>");
//liberator.log(html);
diff --git a/wassr.js b/wassr.js
index 1c40662..1032cd9 100644
--- a/wassr.js
+++ b/wassr.js
@@ -1,5 +1,5 @@
// Vimperator plugin: "Update Wassr"
-// Last Change: 22-Oct-2008. Jan 2008
+// Last Change: 11-Nov-2008. Jan 2008
// License: Creative Commons
// Maintainer: mattn <mattn.jp@gmail.com> - http://mattn.kaoriya.net/
// Based On: twitter.js by Trapezoid
@@ -68,6 +68,7 @@
var endPoint = target ? "http://api.wassr.jp/user_timeline.json?id=" + target
: "http://api.wassr.jp/statuses/friends_timeline.json?id=" + username;
xhr.open("GET", endPoint, false, username, password);
+ xhr.setRequestHeader("User-Agent", "XMLHttpRequest");
// for debug
//xhr.open("GET", "http://api.wassr.jp/statuses/user_timeline/otsune.json", false, username, password);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
@@ -76,7 +77,7 @@
var html = <style type="text/css"><![CDATA[
span.wassr.entry-content a { text-decoration: none; }
- img.wassr.photo { border; 0px; width: 16px; height: 16px; vertical-align: baseline; }
+ img.wassr.photo { border; 0px; width: 16px; height: 16px; vertical-align: baseline; margin: 1px; }
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
statuses.map(function(status)
@@ -86,9 +87,9 @@
title={status.user.screen_name}
class="wassr photo"/>
<strong>{status.user_login_id}&#x202C;</strong>
+ : <span class="wassr entry-content">{emojiConv(status.text)}&#x202C;</span>
</>.toSource()
- .replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
- sprintf(': <span class="wassr entry-content">%s&#x202C;</span>', emojiConv(status.text)))
+ .replace(/(?:\r?\n|\r)[ \t]*/g, " "))
.join("<br/>");
//liberator.log(html);