MediaWiki:Common.js

/* Official admin messages */

$(".OfficialAdminMsg").each(function{	var admindd;	var adminname = $(this).closest('.MiniEditorWrapper').find('.edited-by a').text;	var ts = Date.parse($(this).closest('.MiniEditorWrapper').find('.msg-toolbar .timestamp .permalink').text.replace(/(^\n\t*[0-9][0-9]:[0-9][0-9], |\n\t*$)/g, ''));	if ( adminname == "C H U N K Y"			|| adminname == "Pam pam4"			|| adminname == "Galactic Papyrus"	|| adminname == "Super Miron"			|| adminname == "XxObjectShows4LifexX" ) {		admindd = ts+1;   //} else if ( adminname == "demoted admin" ) { admindd = Date.parse("January 1, 1970");	} else {		admindd = 0;	}	if ( admindd > ts ) {		$(this).closest('.MiniEditorWrapper').find('.edited-by').append(' [official admin message] ');	} });