Desk.com doesn’t have very much documentation on their chat widget.
If there is, let me know.
All I needed was a custom icon for the chat button. I had to hack it into place by continually checking to see if the widget has initialized yet. Once it has initialized, hide the desk.com chat icon and attach a click handler to our own button, which merely proxies the click to the hidden original button.
// <a href="http://desk.com">desk.com</a> hack; custom chat now button.
var $chatButton = $(".my-chat-button");
var intervalID = setInterval(function() {
$widget = $(".a-desk-widget");
if ($widget.length != 0) {
clearInterval(intervalID);
$widget.hide();
$chatButton = $(".chat-now-button");
$chatButton.click(function() {
$widget.click();
})
}
})