Skip to content

Instantly share code, notes, and snippets.

@imajes
Created October 4, 2011 01:31
Show Gist options
  • Select an option

  • Save imajes/1260710 to your computer and use it in GitHub Desktop.

Select an option

Save imajes/1260710 to your computer and use it in GitHub Desktop.
Fluid/ New Relic user script
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
var status = document.getElementsByClassName("app_status_info")[1]
var thruput = status.children[0].innerText;
window.fluid.dockBadge = thruput;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment