User:SiPlus/wikia.js

// FOR ALPHA AND BETA TESTING function ToggleSpoilers {   //switch (document.getElementById('spoilersStatus').alt) //{       //case 'Off': document.getElementById('spoilersStatus').src = 'http:\/\/images1.wikia.nocookie.net\/half-life\/en\/images\/thumb\/0\/03\/Green_check.svg\/9px-Green_check.svg.png'; document.getElementById('spoilersStatus').alt = 'On'; //break; //case 'On': //document.getElementById('spoilersStatus').src = 'http:\/\/images1.wikia.nocookie.net\/half-life\/en\/images\/thumb\/5\/5f\/Red_X.svg\/9px-Red_X.svg.png'; //document.getElementById('spoilersStatus').alt = 'Off'; //break; //} } function AddToggleSpoilersButton { document.getElementById('WikiHeader').innerHTML='Spoilers<\/a>'+document.getElementById('WikiHeader').innerHTML; } addOnloadHook(AddToggleSpoilersButton);