diff options
author | janus_wel | 2008-11-25 05:35:11 +0000 |
---|---|---|
committer | janus_wel | 2008-11-25 05:35:11 +0000 |
commit | 887cc81710ee5a55304a8e2d1f4b833b304ef74f (patch) | |
tree | b65a959af49c6cdd350f2ede04429f9954f1b2f1 /direct_bookmark.js | |
parent | 4814851d840f454be9d34d777e4341449f7e3963 (diff) | |
download | vimperator-plugins-887cc81710ee5a55304a8e2d1f4b833b304ef74f.tar.bz2 |
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
Diffstat (limited to 'direct_bookmark.js')
-rw-r--r-- | direct_bookmark.js | 11 |
1 files 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 <trapezoid.g@gmail.com> - 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);
|