User:FallenShadow/global.js

/* Fixed Chat Hacks */ importScriptPage('User:Foodbandlt/FixedChatHacks.js', 'c'); /* PMs button */ if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma seperated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('Group'); } /* PM button */ if(wgCanonicalSpecialPageName == 'Chat') { function createPM { var users = prompt('Enter a user to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('PM'); }