MediaWiki:Gadget-adminHighlight.js

// By Equazcion: http://terraria.gamepedia.com/User:Equazcion

var urlPre = 'https://terraria.gamepedia.com'; var adminListPage = 'MediaWiki:AdminList.js'; $.get(urlPre + '/index.php?action=raw&ctype=application/json&title=' + adminListPage, function(data){	var admins = data.split(",");	$('#bodyContent a[href]').each(function{ var $this = $(this); var user = $this.attr('href').replace(/\/User:/, ''); if ($.inArray(user, admins) > -1) { $this.addClass('admin-highlight'); $this.css('background-color','#CCF2F1') }	}); });