Skip to content

Instantly share code, notes, and snippets.

@prasmussen
Created February 12, 2016 15:31
Show Gist options
  • Save prasmussen/dc01032b27334d416fd3 to your computer and use it in GitHub Desktop.
Save prasmussen/dc01032b27334d416fd3 to your computer and use it in GitHub Desktop.
Tampermonkey scripts
// ==UserScript==
// @name Disable zopim livechat
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
'use strict';
setTimeout(function() {
if ("$zopim" in window) {
$zopim(function() {
$zopim.livechat.setDisableSound(true);
});
var elements = document.querySelectorAll(".zopim");
Array.apply(null, elements).forEach(function(elem) {
elem.remove();
});
}
}, 8000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment