Skip to content

Instantly share code, notes, and snippets.

@keimoon
Created April 15, 2014 04:39
Show Gist options
  • Save keimoon/10702634 to your computer and use it in GitHub Desktop.
Save keimoon/10702634 to your computer and use it in GitHub Desktop.
Tamper JS hipchat emo code =))
// ==UserScript==
// @name HipChat emo
// @namespace http://gottb.io/
// @version 0.1
// @description HipChat emo
// @match https://gottb.hipchat.com/chat*
// @copyright 2012+, You
// ==/UserScript==
$(document).ready(function(){
var input = document.getElementById('message_input')
input.addEventListener('keyup', function(event){
input.value = input.value.replace(':v', '(pacman)').replace('=))', '(rofl)')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment