aboutsummaryrefslogtreecommitdiffstats
path: root/twitter.js
diff options
context:
space:
mode:
authormattn2008-11-11 04:08:09 +0000
committermattn2008-11-11 04:08:09 +0000
commit843cf3a2d77909513d967aa4ca3b94c446e42faa (patch)
tree2d24c10779a011ab4f274bcad08af5f74faffc1d /twitter.js
parent357a941e87c6a6525edf04a607537f3eebec146e (diff)
downloadvimperator-plugins-843cf3a2d77909513d967aa4ca3b94c446e42faa.tar.bz2
status.textに&があるとテキスト展開されていたのを修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@23217 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twitter.js')
-rw-r--r--twitter.js8
1 files changed, 4 insertions, 4 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);