Posted By


mountainash on 05/28/14

Tagged


Statistics


Viewed 620 times
Favorited by 0 user(s)

Related snippets


Die ClickDesk Die!


/ Published in: JavaScript
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. $(function() {
  2. function diedesk() {
  3.  
  4. if ($('.clickdesk-ultra').length > 0) {
  5. $('.clickdesk-ultra').remove();
  6. window.clearInterval(intervalID);
  7. }
  8.  
  9. }
  10.  
  11. var intervalID = window.setInterval(diedesk, 100);
  12. }
  13. });

URL: http://clickdesk.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.