MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

//********************************************************\\ //***Admin Background Colors for Forums and Message Walls***\\ //************************************************************\\

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Areades"]').length; }).next.css({    background: "#81BEF7 url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="SamwiseFilmore"]').length; }).next.css({    background: "#d07130 url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat paddingTop:'10px'" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Thorin11"]').length; }).next.css({    background: "#A7B200 url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="LOTRMod"]').length; }).next.css({    background: "#CEB44E url('http://img4.wikia.nocookie.net/__cb20141225003527/lotrminecraftmod/images/thumb/4/4e/Modcreator.png/250px-Modcreator.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Handles-081"]').length; }).next.css({    background: "#00CCFF url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Glflegolas"]').length; }).next.css({    background: "#387C44 url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Gen._Grievous1138"]').length; }).next.css({    background: "#DC143C url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Sinthoniel"]').length; }).next.css({    background: "#FF7F00 url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Beijing1000"]').length; }).next.css({    background: "#88d188 url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat",    padding: '10px' });

//***********************************************************\\ //***Moderator Background Colors on Forums and Message Walls***\\ //***************************************************************\\

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Commandogregor1234"]').length; }).next.css({    background: "#bd33a4 url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="EpicSpacePanda"]').length; }).next.css({    background: "#0EC79F url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Ffets"]').length; }).next.css({    background: "#c4e838 url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Glaerdir"]').length; }).next.css({    background: "#F962A5 url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Smaug_the_Tyrannical"]').length; }).next.css({    background: "#CCAC00 url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Special_Elf_Friend"]').length; }).next.css({    background: "#00ced1 url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Narvin"]').length; }).next.css({    background: "#24a0d0 url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat" });

//*********************************************************************\\ //***Temporary Moderator Background Colors on Forums and Message Walls***\\ //*************************************************************************\\

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="TomtheBom"],a[href$="Thorin_Stonehelm"],a[href$="Rocket_Engineer"],a[href$="Edacnik"],a[href$="Recneps"],a[href$="Dinopizzagamer"],a[href$="GimliBurper"]').length; }).next.css({    background: "#cdc0b0 url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat" });

//HTMl header response var meta = document.createElement('meta'); meta.setAttribute('X-Clacks-Overhead','GNU Terry Pratchett'); // Add as many of these as you need here. If you need to modify the inner HTML use meta.innerHTML="foo"; document.getElementsByTagName("HEAD")[0].appendChild(meta);