From 887cc81710ee5a55304a8e2d1f4b833b304ef74f Mon Sep 17 00:00:00 2001 From: janus_wel Date: Tue, 25 Nov 2008 05:35:11 +0000 Subject: chase change of はてなブックマーク's tag list git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24807 d0d07461-0603-4401-acd4-de1884942a52 --- direct_bookmark.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/direct_bookmark.js b/direct_bookmark.js index 4e98830..58c20f9 100644 --- a/direct_bookmark.js +++ b/direct_bookmark.js @@ -1,6 +1,6 @@ // Vimperator plugin: 'Direct Post to Social Bookmarks' -// Version: 0.13 -// Last Change: 22-Nov-2008. Jan 2008 +// Version: 0.12 +// Last Change: 25-Nov-2008. Jan 2008 // License: Creative Commons // Maintainer: Trapezoid - http://unsigned.g.hatena.ne.jp/Trapezoid // Parts: @@ -353,7 +353,8 @@ xhr.send(null); var mypage_html = parseHTML(xhr.responseText, ['img', 'script']); - var tags = getElementsByXPath("//ul[@id=\"taglist\"]/li/a",mypage_html); + //var tags = getElementsByXPath("//ul[@id=\"taglist\"]/li/a",mypage_html); + var tags = getElementsByXPath('id("tags")/li/a', mypage_html); tags.forEach(function(tag){ hatena_tags.push(tag.innerHTML); @@ -626,9 +627,7 @@ user,password, isNormalize ? getNormalizedPermalink(url) : url,title, comment,tags - )).next(function() { - liberator.echo("[" + services[service].description + "] post completed."); - }); + )); }); d.error(function(e){liberator.echoerr("direct_bookmark.js: Exception throwed! " + e);liberator.log(e);}); setTimeout(function(){first.call();},0); -- cgit v1.2.3