Skip to content

Instantly share code, notes, and snippets.

@sfyn sfyn/gist:1025146
Created Jun 14, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.