aboutsummaryrefslogtreecommitdiffstats
path: root/wassr.js
diff options
context:
space:
mode:
authoranekos2013-04-06 17:34:25 +0900
committeranekos2013-04-06 17:34:25 +0900
commitd26934599d3df506f21e1ead94483d4e351b703c (patch)
tree7491fd55b918b97964f092571a8dfb8ae03ba64c /wassr.js
parent05896438474f55d3a569b983c46457a602cff0f6 (diff)
downloadvimperator-plugins-d26934599d3df506f21e1ead94483d4e351b703c.tar.bz2
ミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョ
Diffstat (limited to 'wassr.js')
-rw-r--r--wassr.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/wassr.js b/wassr.js
index 5c027ac..8520450 100644
--- a/wassr.js
+++ b/wassr.js
@@ -81,13 +81,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
statuses.map(function(status)
- <>
+ `
<img src={status.user.profile_image_url}
alt={status.user.screen_name}
title={status.user.screen_name}
class="wassr photo"/>
<strong>{status.user_login_id}&#x202C;</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
sprintf(': <span class="wassr entry-content">%s&#x202C;</span>', status.html))
.join("<br/>");
@@ -126,13 +126,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
statuses.map(function(status)
- <>
+ `
<img src={status.user.profile_image_url}
alt={status.user.screen_name}
title={status.user.screen_name}
class="wassr photo"/>
<strong>{status.user_login_id}&#x202C;</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
sprintf(': <span class="wassr entry-content">%s&#x202C;</span>', status.html))
.join("<br/>");
@@ -150,12 +150,12 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ");
for (var n = 0; n < items.length; n++)
- html += <>
+ html += `
<strong>{items[n].getElementsByTagName('title')[0].textContent.replace(/&gt;/g, '>').replace(/&lt;/g, '<').replace(/^%/, '')}&#x202C;</strong>
: <span class="wassr entry-content">{items[n].getElementsByTagName('description')[0].textContent.replace(/&gt;/g, '>').replace(/&lt;/g, '<')}&#x202C;</span>
<br />
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ");
liberator.echo(html, true);
}
@@ -198,13 +198,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
todos.map(function(todo)
- <>
+ `
<img src="http://wassr.jp/img/icn-balloon.gif"
alt="todo"
title="todo"
class="wassr icon"/>
<strong>{todo.todo_rid}</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
sprintf(': <span class="wassr entry-content">%s</span>', todo.body))
.join("<br/>");
@@ -223,13 +223,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
footmarks.map(function(footmark)
- <>
+ `
<img src={"http://wassr.jp/user/" + footmark.login_id + "/profile_img.png.32"}
alt={footmark.nick}
title={footmark.nick}
class="wassr photo"/>
<strong>{footmark.login_id}&#x202C;</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ")).join("<br/>");
liberator.echo(html, true);
@@ -246,13 +246,13 @@
]]></style>.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ") +
footmarks.map(function(footmark)
- <>
+ `
<img src={"http://wassr.jp/user/" + footmark.login_id + "/profile_img.png.32"}
alt={footmark.nick}
title={footmark.nick}
class="wassr photo"/>
<strong>{footmark.login_id}&#x202C;</strong>
- </>.toSource()
+ `.toSource()
.replace(/(?:\r?\n|\r)[ \t]*/g, " ")).join("<br/>");
liberator.echo(html, true);