diff -r a99a04556e3b -r cab5c9e10f90 tweetcast/nodejs/client/js/script.js --- a/tweetcast/nodejs/client/js/script.js Fri Oct 28 16:46:13 2011 +0200 +++ b/tweetcast/nodejs/client/js/script.js Fri Oct 28 18:48:14 2011 +0200 @@ -82,7 +82,8 @@ } html += '
' + new Date(tweet.created_at).toLocaleTimeString() + '
'; lastend = 0; - txt = ''; + txt = tweet.text.replace(/(https?:[0-9a-zA-Z\/\-_\.~&?=]+)/g,'$1').replace(/@([0-9a-zA-Z_]+)/g,'@$1'); +/* txt = ''; entities = []; for (var i in tweet.entities.hashtags) { entities.push({ @@ -110,7 +111,7 @@ txt += tweet.text.substring(lastend, entities[i].start) + entities[i].html; lastend = entities[i].end; } - txt += tweet.text.substring(lastend); + txt += tweet.text.substring(lastend); */ html += txt + '
'; return html; } @@ -216,7 +217,7 @@ tweetData.waitUpdate = false; getUpdate(); tweetData.blockUpdate = true; - setTimeout(delayedUpdate, 300); + setTimeout(delayedUpdate, 100); } }