MediaWiki:AdminHilights.js

/* A short js/jQuery that adds css rules to highlight links to admin's comments and user and message wall links */

var HPWadmins = [ "KakashiBallZ", "Blakegripling ph", "Elite Prime", "MabusWinnfield", "Mfaizsyahmi", "FegeleinParodies", "Benad361" ]

var adminCommentSelectors = new Array; var adminCommentDeclarations = "background-color: #333333"; var adminLinkSelectors = new Array; var adminLinkDeclarations = "color: #00cc00";

for (var i = 0; i < HPWadmins.length; i++) { adminCommentSelectors.push('ul#article-comments-ul li[data-user="' + HPWadmins[i] + '"]') adminLinkSelectors.push('.WikiaPageContentWrapper a[href*="/wiki/User:'+ HPWadmins[i] +'"], .WikiaPageContentWrapper a[href*="/wiki/Message_Wall:'+ HPWadmins[i] +'"]') }

$('head').append(' ' + adminCommentSelectors.join(' blockquote, ') + '{' + adminCommentDeclarations + '}' + adminLinkSelectors.join(', ') + '{' + adminLinkDeclarations + '} ')