Changeset 18425 for lang/javascript
- Timestamp:
- 08/29/08 15:58:41 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/show-delicious-comment-if-hatena-bookmark-comment-is-disabled.user.js
r18424 r18425 222 222 })(); 223 223 var timestamp2 = timestamp.replace(/[^0-9]/g, ''); 224 var comment = bookmarks[n].getElementsByTagName('description') [0];225 if (comment ) comment = comment.textContent;224 var comment = bookmarks[n].getElementsByTagName('description'); 225 if (comment.length) comment = comment[0].textContent; 226 226 comment = comment||''; 227 227 var user = bookmarks[n].getElementsByTagName('dc:creator')[0].textContent; … … 243 243 html += '<a href="/' + user + '/' + encodeURIComponent(tag) + '/" rel="tag" class="user-tag">' + tag + '</a> '; 244 244 } 245 html += '</span> </li>';245 html += '</span> ' + comment + '</li>'; 246 246 } 247 247 document.getElementById('bookmarked_user').innerHTML = html;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)