aboutsummaryrefslogtreecommitdiffstats
path: root/twitter.js
diff options
context:
space:
mode:
authordrry2008-04-10 05:02:36 +0000
committerdrry2008-04-10 05:02:36 +0000
commitdb262df7eb5c9780688781bdaad996fbb54bef27 (patch)
treeb58494813171f13c0296aa1920553400345ac714 /twitter.js
parentaa855218b3e1dd7284a1953624574b64062376f6 (diff)
downloadvimperator-plugins-db262df7eb5c9780688781bdaad996fbb54bef27.tar.bz2
lang/javascript/vimperator-plugins/trunk/twitter.js:
* oops. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9243 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twitter.js')
-rw-r--r--twitter.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/twitter.js b/twitter.js
index 30ee551..64a972e 100644
--- a/twitter.js
+++ b/twitter.js
@@ -27,13 +27,12 @@
xhr.send(null);
var followers_status = window.eval(xhr.responseText);
- var html = <><![CDATA[
- <style type="text/css"><!--
+ var html = <>
+ <style type="text/css"><![CDATA[
a { text-decoration: none; }
img { border; 0px; width: 16px; height: 16px; vertical-align: baseline; }
- --></style>
- ]]></>.toString()
- .replace(/(?:\r?\n|\r)\s*/g, '');
+ ]]></style>
+ </>.toSource();
followers_status.forEach(function(stat){
stat.user.name += "\u202c";
stat.text += "\u202c";
@@ -43,8 +42,7 @@
border="0"/>
<strong>{stat.user.name}</strong>
: {stat.text}<br/>
- </>.toString()
- .replace(/(?:\r?\n|\r)\s*/g, '');
+ </>.toSource();
});
liberator.log(html);
liberator.echo(html, true);