MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ /*Admin Comment Background Highlighting Code*/ $('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Tybereous"]').length; }).next.css({    background: "rgba(200, 200, 200, 0.70) url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat",    padding: '10px' });

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

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Maltalidenta_Kwuitidherali"]').length; }).next.css({    background: "rgba(204, 255, 255, 0.70) url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat",    padding: '10px' });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Dark_dwarves_2"]').length; }).next.css({    background: "rgba(255, 255, 255, 0.70)",    padding: '10px' });

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

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Patrick.vtap"]').length; }).next.css({    background: "rgba(118, 238, 198, 0.70) url('http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') bottom center no-repeat",    padding: '10px' });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Eureka_Enderborn"]').length; }).next.css({    background: "rgba(0, 0, 0, 1) url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat",    padding: '10px',   color: "white" }).find(".quote").css({   background: "rgba(200, 200, 200, 0.40)" });

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="Argali1"]').length; }).next.css({    background: "rgba(202, 225, 255, 0.70)",    padding: '10px' });

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

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="The_Lord_of_Minas_Morgul"]').length; }).next.css({    background: "rgba(0, 0, 0, 0.70)",     padding: '10px',   color: "rgba(139, 137, 137, 0.70)" }).find(".quote").css({   background: "rgba(200, 200, 200, 0.40)" });

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

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

$('.speech-bubble-avatar') .filter(function {    return $(this).has('a[href$="The_Indomitable"]').length; }).next.css({    background: "rgba(0, 0, 0, 0.70) url('http://img2.wikia.nocookie.net/__cb20140625215453/lotrminecraftmod/images/0/03/Admin1_120.png') bottom center no-repeat",    padding: '10px',    color: "red" }).find(".quote").css({   background: "rgba(200, 200, 200, 0.40)" }); /*Text color code*/ /*,  color: "white" }).find(".quote").css({ background: "rgba(200, 200, 200, 0.40)" });

/*92, 138, 230, 0.70*/ /* MOD IMAGE: http://img2.wikia.nocookie.net/__cb20141205133613/lotrminecraftmod/images/d/d1/Mod.png') */