Created
June 14, 2011 15:33
-
-
Save leylaso/1025146 to your computer and use it in GitHub Desktop.
redmine stealth button blinker
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
/** | |
* 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