User:Jgjake2/global.js

/* var mainFooter = document.getElementById("WikiaFooter"); var footerDiv = mainFooter.getElementsByTagName("div")[1]; var newMessage = document.createElement("ul"); newMessage.setAttribute('class', 'WikiaNotifications'); newMessage.setAttribute('id', 'WikiaNotifications'); newMessage.innerHTML=' Blaaa '; footerDiv.appendChild(newMessage);

// Add Popup Script var full = window.location.host //window.location.host is subdomain.domain.com var parts = full.split('.') var sub = parts[0] if(sub == 'elderscrolls') { //importScriptPage('User:Jgjake2/js/ElderScrolls/Popups.js', 'deadisland'); //getPageType; }

function getPageType{ var categoryDiv = document.getElementById('mw-normal-catlinks'); if(categoryDiv){ var categoryDiv_Links = categoryDiv.getElementsByTagName("a"); for (x in categoryDiv_Links){ //document.write(person[x] + " "); switch(categoryDiv_Links[x].title){ case 'Category:Skyrim': alert('Skyrim!'); break; case 'Category:Oblivion': alert('Oblivion!'); break; }       }    } } //mw-normal-catlinks