User:Cap123/multipms.js

/* *Credit to Joeytje50 of RSW * Edited and remade by Cap123 */

if(wgCanonicalSpecialPageName == 'Chat') { function openPMWindow { $('body').append(' Multi-PM   Enter usernames here, separated by a comma and a space.  PM! Cancel  '); $('body').append(' '); } function startPM { var multipm = $('#multipminput').val if (multipm.length != 0) { var usersToPM = multipm.split(", "); mainRoom.openPrivateChat(usersToPM); $('#startPMWindow').remove; $('.blackout').remove; } } function cancelPM { $('#startPMWindow').remove; $('.blackout').remove; } $('form#Write').append('PM'); }