User:Lost Labyrinth/wikia.js

// if (wgTitle == 'Chat' && wgUserGroups && wgUserGroups.indexOf('sysop')!=-1||wgUserGroups.indexOf('chatmoderator')!=-1) { $(function {		$('#ChatBanAdd').html(' Ban user Username:  Ban expiry:   Minutes  Hours  Days    Reason:   Submit  ')	}) function banUser { $('#bsubmit').attr('disabled','disabled').html('Loading...') var user = $('#ChatBanAdd #user').val; var time = parseInt($('#ChatBanAdd #time').val) * parseInt($('#ChatBanAdd #timeformat').val); var reason = $('#ChatBanAdd #reason').val; var notes = $('#ChatBanAdd #notes').val; var now = +(new Date).toUTCString+; exdate = +(new Date((+new Date) + (time * 1000))).toUTCString+; var template = '' $.post(wgScript + '?action=ajax&rs=ChatAjax&method=blockOrBanChat', {			userToBan: user, 			time: time,			reason: reason, 			mode: 'global' 		}, $.proxy(function(data) { alert('The user has been banned.') $('#bsubmit').removeAttr('disabled').html('Submit'); }));	} }