haHAA.js is a fork of Kappa.js by SimulatedGREG. In addition to the functionality of Kappa.js, haHAA.js also finds and replaces Better Twitch TV emote text with icons.
Presently the jQuery plugin interface is unchanged.
<p class="hahaa">haHAA nice meme haHAA</p>
<script src="hahaa.js"></script>
<script>
$(document).ready(function() {
$('.hahaa').kappa();
});
</script>
</body>
</html>
haHAA.js uses the BetterTTV emote API to get a current list of supported emotes.
It can also cache data in local storage to avoid making API calls, making the script more responsive. The cache is refreshed every 3 days to see if there new emotes from the API.