From ec45ff2362212591ecd1dd6d7cbeae9eaf2eb1af Mon Sep 17 00:00:00 2001
From: teramako
Date: Tue, 13 Jul 2010 11:30:09 +0000
Subject: show TimeLine with table element
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37922 d0d07461-0603-4401-acd4-de1884942a52
---
twittperator.js | 57 +++++++++++++++++++++++++++++----------------------------
1 file changed, 29 insertions(+), 28 deletions(-)
diff --git a/twittperator.js b/twittperator.js
index 10d00c1..954b304 100755
--- a/twittperator.js
+++ b/twittperator.js
@@ -1,10 +1,3 @@
-var GM_OAuth = <>>;
// TwitterOauth for Greasemonkey
function TwitterOauth(){
@@ -1061,30 +1054,38 @@ function showTL (s) {
str.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
let html = .toSource()
.replace(/(?:\r\n|[\r\n])[ \t]*/g, " ") +
- s.map(function(status){
- let xml;
- if ("retweeted_status" in status) {
- let rt = status.retweeted_status;
- xml = <>
-
- {rt.user.screen_name}
-
- : {detectLink(unescapeHTML(rt.text))}
- >
- } else {
- xml = <>
-
- {status.user.screen_name}
- : {detectLink(unescapeHTML(status.text))}
- >;
- }
- return xml.toSource().replace(/(?:\r\n|[\r\n])[ \t]*/g, " ");
- }).join("
");
+ s.reduce(function(table, status){
+ return table.appendChild(
+ ("retweeted_status" in status) ?
+ let (rt = status.retweeted_status)
+