Skip to content

Instantly share code, notes, and snippets.

@levicole
Last active December 28, 2015 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save levicole/4f6e0f854f0b91f6b754 to your computer and use it in GitHub Desktop.
Save levicole/4f6e0f854f0b91f6b754 to your computer and use it in GitHub Desktop.
Open Textual Preferences -> Select the Styles tab -> click the "Brows Style Files". Add this script to "scripts.js". Also, add this script to the style's directory https://raw.github.com/iamcal/js-emoji/master/emoji.js.
Textual.includeScriptResourceFile("jquery-2.0.3.min.js");
Textual.includeScriptResourceFile("emoji.js");
Textual.newMessagePostedToView = function(lineNumber) {
var selector = "#line-" + lineNumber + " .message"
var $message = $(selector);
var message = $message.html()
var output = emoji.replace_colons(message);
$message.html(output)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment