Created
February 12, 2016 15:31
-
-
Save prasmussen/dc01032b27334d416fd3 to your computer and use it in GitHub Desktop.
Tampermonkey scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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