Skip to content

Instantly share code, notes, and snippets.

@leylaso
Created June 14, 2011 15:33
Show Gist options
  • Save leylaso/1025146 to your computer and use it in GitHub Desktop.
Save leylaso/1025146 to your computer and use it in GitHub Desktop.
redmine stealth button blinker
/**
* Paste this code into your greasemonkey or browser console to enable
* deep defense against redmine's stealth mode
*/
stealthButton = document.getElementById('stealth_toggle');
blonk = 0
if (stealthButton.innerHTML == 'Disable stealth mode')
{
setInterval ('blink(stealthButton)', 500);
}
function blink(object)
{
blonk++
if (blonk%2)
{
object.style.color = '#00ff00'
}
else
{
object.style.color = '#ff0000'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment