Changeset 12609
- Timestamp:
- 05/28/08 19:44:00 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/hatenaStar.js
r12534 r12609 20 20 21 21 function blink(aNode){ 22 if (!aNode) { 23 liberator.echoerr('start not found'); 24 return; 25 } 22 26 if (aNode.nodeType == 3) aNode = aNode.parentNode; 23 27 var toggle = true; … … 36 40 try { 37 41 var result = liberator.buffer.evaluateXPath('.//img[contains(concat(" ", @class, " "), " hatena-star-add-button ")]'); 38 if (arg.match(/^ \?(\d+)$/)) {39 blink(result.snapshotItem( RegExp.$1));42 if (arg.match(/^(\d+)\?$/)) { 43 blink(result.snapshotItem(Number(RegExp.$1)-1)); 40 44 return; 41 45 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)