User:Emerald Pup/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

/******************************************************/ /* Quickban                                          */ /* Idea by Madnessfan34537                           */ /* Code by Madnessfan34537                           */ /******************************************************/ function banButton { var banStuff = prompt("Enter the user, time in seconds, and reason, separated by commas", "Stuff goes here"); if (banStuff.length != 0) { var banVars = banStuff.split(","); var cmd = new models.BanCommand({                           userToBan: banVars[0],                            time: parseInt(banVars[1]),                            reason: banVars[2]                    }); mainRoom.socket.socket.send(cmd.xport); }   }    $('Quick Ban ').prependTo('.Rail');