Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

User:Disassemblyline/monobook.js

From Encyclopedia Dramatica
This is an old revision of this page, as edited by imported>Disassemblyline at 00:36, 20 September 2013. It may differ significantly from the current revision.
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