Changeset 21342
- Timestamp:
- 10/15/08 08:42:37 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/nnp_cooperation.js
r21089 r21342 96 96 97 97 // thumbnail URL 98 const thumbnailURL = 'http://tn-skr 1.smilevideo.jp/smile?i=';98 const thumbnailURL = 'http://tn-skr$HOSTNUMBER.smilevideo.jp/smile?i=$VIDEO_ID'; 99 99 100 100 // style … … 136 136 '<tr>', 137 137 '<td class="index">$INDEX:</td>', 138 '<td class="thumbnail"><img src="$THUMBNAILURL $ID" width="33" height="25" /></td>',138 '<td class="thumbnail"><img src="$THUMBNAILURL" width="33" height="25" /></td>', 139 139 '<td>$TITLE</td>', 140 140 '<td>$URL</td>', … … 180 180 // get video id 181 181 var id = nodes[i].href.match(/\d+$/); 182 // build thumnail's URL 183 // refer: http://d.hatena.ne.jp/ZIGOROu/20081014/1223991205 184 var thumbnail = thumbnailURL.replace(/\$HOSTNUMBER/g, id % 2 + 1) 185 .replace(/\$VIDEO_ID/g, id); 182 186 // evaluate variables and push to list 183 187 items.push( 184 188 itemHTML.replace(/\$INDEX/g, i + 1) 185 .replace(/\$THUMBNAILURL/g, thumbnailURL) 186 .replace(/\$ID/g, id) 189 .replace(/\$THUMBNAILURL/g, thumbnail) 187 190 .replace(/\$TITLE/g, nodes[i].textContent) 188 191 .replace(/\$URL/g, nodes[i].href)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)