Created
January 14, 2011 02:07
-
-
Save tkawa/779033 to your computer and use it in GitHub Desktop.
返信する人を表示する twicli プラグイン
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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