Created
July 15, 2016 01:29
-
-
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…
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
$('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