/ Published in: JavaScript
ClickDesk's website chat JavaScript API is very basic, it only allows for a few customisations, but no event control. And with a last of whitelist/blacklist URL restriction functionality on a large site their code is often in the template. I created the attached code to "hide" ClickDesk on a single URL.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(function() { function diedesk() { if ($('.clickdesk-ultra').length > 0) { $('.clickdesk-ultra').remove(); window.clearInterval(intervalID); } } var intervalID = window.setInterval(diedesk, 100); } });
URL: http://clickdesk.com