残念。うまくいかない。
ロギングしてみたらDeferred.next() あたりでこけている気がする。
あと気付いたら;c ;C にはてなブックマークへのポストとコメント閲覧がわりあてられてた(はてなブックマーク拡張の機能?)。
コメント確認画面をスルーしたいなあ。
URL引き数はこれからみてみよう。
*** direct_bookmark.js.orig 2009-08-16 04:41:39.000000000 +0900
--- direct_bookmark.js 2009-08-17 08:04:00.000000000 +0900
***************
*** 691,695 ****
--- 691,716 ----
]
}
);
+ hints.addMode('d','direct bookmark',
+ function(elem, url){
+ var targetServices = useServicesByPost;
+ var d = new Deferred();
+ var first = d;
+ var title = elem.innerHTML;
+ targetServices.split(/\s*/).forEach(function(service){
+ var user, password, currentService = services[service] || null;
+ [user,password] = currentService.account ? getUserAccount.apply(currentService,currentService.account) : ["", ""];
+ d = d.next(function() currentService.poster(
+ user,password,
+ isNormalize ? getNormalizedPermalink(url) : url,title
+ )).next(function(){
+ liberator.echo("[" + services[service].description + "] post completed.");
+ });
+ });
+ d.error(function(e){liberator.echoerr("direct_bookmark.js: Exception throwed! " + e);liberator.log(e);});
+ setTimeout(function(){first.call();},0);
+ },
+ function() '//a'
+ );
})();
// vim:sw=4 ts=4 et: