tombloo

Tomblooの対応サービスを増やすのはかんたんに書けます。

かんたんなのか? つくりかた Tomblooの対応サービスを増やすのはかんたんに書けます。 クラス名を決める クラス名はファイル名と結びついてるみたいです。今回はHatenaDiaryという名前にしたので、作るファイルの名前は21_HatenaDiary.jsでした。数字の部分…

update()

引き続き tombloo 探検中。00_prototype.jsupdate if(typeof(update)=='undefined'){ function update(t, s){ for(var p in s) t[p] = s[p]; return t; } } この update かー。発見した。String.prototype 用で使われてた。00_prototype.js の中。よくわから…

tombloo + dashboard

http://utatane.tumblr.com/post/41758017/dashboard-plus-tombloo http://gist.github.com/5004 http://to.tumblr.com/post/41836926 http://twitter.com/Constellation/statuses/854509745 http://userscripts.org/scripts/review/23537 どこかに tombloo …

gkojax の tombloo hack

tombloo@brasil.to/chrome/content/library/20_Tumblr.js変更前 appendTags : function(form, ps){ return update(form, { 'post[tags]' : (ps.tags && ps.tags.length)? joinText(ps.tags, ',') : '', 'post[is_private]' : ps.private==null? form['post[i…

convertToHTMLDocument

01_utility.js function convertToHTMLDocument(html, doc) { html = html.replace(//, '').replace(/<html.*?>/, '').replace(/<\/html>.*/, '') doc = doc || currentDocument() || document; var xsl = (new DOMParser()).parseFromString( '\ </html.*?>

formContents

01_utility.js function formContents(elm){ if(typeof(elm)=='string') elm = convertToHTMLDocument(elm); return reduce(function(p, a){ p[a[0]]=a[1]; return p; }, zip.apply(null, MochiKit.DOM.formContents(elm)), {}); } イカン、ここ、なにやって…

tombloo の tumblr post で form データをどう扱っているか

20_Tumblr.jsここら辺りかなあ。getForm /** * ポストフォームを取得する。 * reblogおよび新規エントリーのどちらでも利用できる。 * * @param {Object} url フォームURL。 * @return {Deferred} */ getForm : function(url){ return request(url).addCallb…

tombloo / xpi / chrome / content / library

tombloo/xpi/chrome/content at master · to/tombloo · GitHub