Changeset 7102
- Timestamp:
- 02/24/08 18:15:43 (5 years ago)
- Files:
-
- 1 modified
-
lang/javascript/userscripts/matasamune.user.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/matasamune.user.js
r7101 r7102 7 7 // @author noboruhi 8 8 // @author noriaki 9 // @updated 2008-02-24 18: 05:009 // @updated 2008-02-24 18:11:00 10 10 // @version 0.2.3 11 11 // ==/UserScript== … … 73 73 $N('br',{}), 74 74 '再生: ', 75 at(data, 'view_counter').textContent,75 splitComma(at(data, 'view_counter').textContent), 76 76 $N('br',{}), 77 77 'コメント: ', 78 at(data, 'comment_num').textContent,78 splitComma(at(data, 'comment_num').textContent), 79 79 $N('br',{}), 80 80 'マイリスト: ', 81 at(data, 'mylist_counter').textContent,81 splitComma(at(data, 'mylist_counter').textContent), 82 82 ]) 83 83 ]) … … 238 238 return str.length > length ? str.slice(0, length - truncation.length) + truncation : String(str); 239 239 } 240 function splitComma(str, span) { 241 span = span || 3; 242 var array = new Array(); 243 for(var i=str.length; i>0; i-=span) array.unshift(str.substring(i-span < 0 ? 0 : i-span, i)); 244 return array.join(','); 245 }; 240 246 241 247 function $N(name, attr, childs) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)