Skip to content

Instantly share code, notes, and snippets.

@tkawa
Created January 14, 2011 02:07
Show Gist options
  • Save tkawa/779033 to your computer and use it in GitHub Desktop.
Save tkawa/779033 to your computer and use it in GitHub Desktop.
返信する人を表示する twicli プラグイン
langResources["What\'s happening?"] = ['いまなにしてる?'];
langResources['Reply to $1'] = ['$1 への返信'];
(function () {
// divをつくる
var optionDiv = $('option');
var dummy = document.createElement('div');
dummy.innerHTML = '<div id="doing">' + _("What\'s happening?") + '</div>';
optionDiv.insertBefore(dummy.firstChild, optionDiv.firstChild);
// setReplyId関数をフック
var setReplyId_original = setReplyId;
setReplyId = function (id) {
setReplyId_original(id);
var message = id ? _('Reply to $1', '@'+in_reply_to_user) : _("What\'s happening?");
$('doing').innerHTML = message;
}
// registerPlugin({ init: makeDoingDiv });
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment