MediaWiki:Chat.js/Test.js

/* MultiBan.js Beta */ function showPopup { $('body').append(' Multiban   Enter usernames here, separated by a semicolon and a space. Tab insert works.  Enter ban length here.  Ban Cancel  '); $('body').append(' '); }

function banUsers { var multiban = $('#multibaninput').val var multibanlength = $('#multibanlength').val if (multiban.length != 0) { var usersToBan = multiban.split("; "); var i = 0; for (i; i<usersToBan.length; i++) { mainRoom.ban({name:usersToBan[i]}); }		$('#massban').remove; $('.blackout').remove; } }