Skip to content

Instantly share code, notes, and snippets.

@jfriedlaender
Created July 15, 2016 01:29
Show Gist options
  • Save jfriedlaender/10e582db5e771eab7c6c0ac43020fa62 to your computer and use it in GitHub Desktop.
Save jfriedlaender/10e582db5e771eab7c6c0ac43020fa62 to your computer and use it in GitHub Desktop.
If anyone is interested, I made a quick javascript snippet that can make your Zendesk header green when your Zendesk voice is turned on. This is mostly to help you remember to turn it off when you leave your computer. You need to get a browser plugin that executes custom javascript for a specific webpage. I used CJS for chrome when testing it. T…
$('body').on('click', '.ember-view.availability', function(){
setTimeout(function() {
if($('#voice-control').hasClass('off')) {
$('#branding_header').css('background-color', '');
} else {
$('#branding_header').css('background-color', 'green');
}
}, 1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment