- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
User:Disassemblyline/monobook.js
From Encyclopedia Dramatica
Jump to navigationJump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
var blinkers; //var used to hold all elements with the class "blinker"
function start_blinking()
{
blinkers = document.getElementsByClassName('blinker'); //find those rainbow blinkies
if (blinkers)
{
setInterval(function(){toggleBlinkHandler();}, 970); //interval to run it
}
}
function toggleBlinkHandler()
{
toggleBlink();
setTimeout(function(){toggleBlink();}, 480); //interval to turn it off
}
function toggleBlink()
{
for(var i = 0; i < blinkers.length; i++)
{
if(blinkers[i].style.visibility == 'visible')
{
blinkers[i].style.visibility = 'hidden'; //___
}
else
{
blinkers[i].style.visibility = 'visible'; //LOL
}
}
}
window.addEventListener("load", start_blinking, false); //hook