From d26934599d3df506f21e1ead94483d4e351b703c Mon Sep 17 00:00:00 2001 From: anekos Date: Sat, 6 Apr 2013 17:34:25 +0900 Subject: ミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョミョ --- haiku.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'haiku.js') diff --git a/haiku.js b/haiku.js index ba38854..3cbf928 100644 --- a/haiku.js +++ b/haiku.js @@ -22,7 +22,7 @@ // un-fav someone's last status.. mean remove Hatena Star. // :haiku! #keyword // show the keyword timeline. -var PLUGIN_INFO = +var PLUGIN_INFO = xml` {NAME} Hatena Haiku Client @@ -52,7 +52,7 @@ The script allows you to update Haiku status from Vimperator. :haiku! #keyword: show the keyword timeline. ]]> -; +`; (function(){ liberator.plugins.haiku = { @@ -149,8 +149,8 @@ The script allows you to update Haiku status from Vimperator. statuses.forEach(function(status) { var text = status.text; var keyword = status.keyword; - var star = status.favorited > 0 ? <>{'x' + status.favorited} : <>; - var replies = <>; + var star = status.favorited > 0 ? `{'x' + status.favorited}` : ``; + var replies = ``; if (text.indexOf(keyword+"=") == 0) text = status.text.substr(keyword.length + 1); text = convert(text); @@ -159,16 +159,16 @@ The script allows you to update Haiku status from Vimperator. if (status.replies.length > 0){ replies =
; status.replies.forEach(function(rep){ - replies.* += <> + replies.* += `
{rep.user.screen_name} {rep.user.name}
{rep.text.substr(keyword.length)}
- ; + `; }); } - html += <> + html += `
{status.user.screen_name} {replies}
- ; + `; }); return html; } -- cgit v1.2.3