diff options
author | suVene | 2008-12-29 15:36:08 +0000 |
---|---|---|
committer | suVene | 2008-12-29 15:36:08 +0000 |
commit | 422295f4b044038d04a9a9e7d8b51a2d71292f2e (patch) | |
tree | d14b2aac76957ccf36e7f784b1489b0425516ff6 /notifier/subject_hatelabo_bottle.js | |
parent | 83d0b3b6cf9698a5f7615458631ff626bd840966 (diff) | |
download | vimperator-plugins-422295f4b044038d04a9a9e7d8b51a2d71292f2e.tar.bz2 |
add subject_twitter.scraper.js
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27570 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'notifier/subject_hatelabo_bottle.js')
-rw-r--r-- | notifier/subject_hatelabo_bottle.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/notifier/subject_hatelabo_bottle.js b/notifier/subject_hatelabo_bottle.js index 7bd93c6..c74756d 100644 --- a/notifier/subject_hatelabo_bottle.js +++ b/notifier/subject_hatelabo_bottle.js @@ -46,9 +46,9 @@ notifier.subject.register(notifier.SubjectHttp, { !cache.some(function(c) c.textContent == element.textContent)), buildMessages: function(diff) { return diff.map($U.bind(this, function(d) { - var permalink = $U.getNodesFromXPath('descendant::a[@class="hatena-star-uri"]', d); - if (permalink.length > 0) - permalink = URL + permalink[0]; + var permalink = $U.getFirstNodeFromXPath('descendant::a[@class="hatena-star-uri"]', d); + if (permalink) + permalink = URL + permalink; return new notifier.Message('Hatelabo bottle', $U.xmlSerialize(d), permalink) })); } |