User:Woganhemlock/wikia.js

// Change "A Wikia contributor" to IP address importScriptPage('MediaWiki:Common.js/ipAnon.js', 'admintools'); // END Change "A Wikia contributor" to IP address

/* Add UTC clock above articles */ importScript('MediaWiki:Wikia.js/displayTimer.js');

/* Causes edit dropdown menus to automatically display upon mouseover */ /* http://dev.wikia.com/wiki/AutoEditDropdown/code.js */ if (skin == "oasis") { var loggedInNum = 1; if ( wgUserName == null ) { loggedInNum = 0; }   var Arrow1 = $('.wikia-menu-button .drop')[0]; var Dropdown1 = $(".WikiaMenuElement")[loggedInNum]; var Arrow2 = $('.wikia-menu-button .drop')[1]; var Dropdown2 = $(".WikiaMenuElement")[loggedInNum + 1]; if ( Arrow1 != undefined ) { Arrow1.setAttribute('onmouseout', 'hideDropdown1'); Arrow1.setAttribute('onmouseover', 'showDropdown1'); if ( Dropdown1 != undefined ) { Dropdown1.setAttribute('onmouseout', 'hideDropdown1'); Dropdown1.setAttribute('onmouseover', 'showDropdown1'); }   }    if ( Arrow2 != undefined ) { Arrow2.setAttribute('onmouseout', 'hideDropdown2'); Arrow2.setAttribute('onmouseover', 'showDropdown2'); if ( Dropdown2 != undefined ) { Dropdown2.setAttribute('onmouseout', 'hideDropdown2'); Dropdown2.setAttribute('onmouseover', 'showDropdown2'); }   }    function showDropdown1 { Dropdown1.setAttribute('style', 'display: block; min-width: 100%;'); }   function hideDropdown1 { Dropdown1.setAttribute('style', 'display: none;'); }   function showDropdown2 { Dropdown2.setAttribute('style', 'display: block; min-width: 100%;'); }   function hideDropdown2 { Dropdown2.setAttribute('style', 'display: none;'); } } /*