Changeset 25004 for lang/javascript/vimperator-plugins
- Timestamp:
- 11/27/08 02:00:59 (6 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/direct_bookmark.js
r24976 r25004 1 1 // Vimperator plugin: 'Direct Post to Social Bookmarks' 2 2 // Version: 0.12 3 // Last Change: 2 5-Nov-2008. Jan 20083 // Last Change: 27-Nov-2008. Jan 2008 4 4 // License: Creative Commons 5 5 // Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid … … 421 421 entryPage:'http://clip.livedoor.com/page/%URL%', 422 422 poster:function(user,password,url,title,comment,tags){ 423 var rate=0; 424 var starFullRate=5; 425 if(comment.match(/\*+$/)){ 426 comment = RegExp.leftContext; 427 rate = (RegExp.lastMatch.length > starFullRate)? starFullRate : RegExp.lastMatch.length; 428 } 423 429 var request_url = 'http://api.clip.livedoor.com/v1/posts/add?' + [ 424 ['url', url], ['description', title], ['extended', comment], [' tags', tags.join(' ')]430 ['url', url], ['description', title], ['extended', comment], ['rate', rate], ['tags', tags.join(' ')] 425 431 ].map(function(p) p[0] + '=' + encodeURIComponent(p[1])).join('&'); 426 432 return Deferred.http({ … … 628 634 isNormalize ? getNormalizedPermalink(url) : url,title, 629 635 comment,tags 630 )); 636 //)); 637 )).next(function(){ 638 liberator.echo("[" + services[service].description + "] post completed."); 639 }); 631 640 }); 632 641 d.error(function(e){liberator.echoerr("direct_bookmark.js: Exception throwed! " + e);liberator.log(e);});
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)