Advertisement
Guest User

custom.js

a guest
Apr 18th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. /*
  2. * @package AJAX_Chat
  3. * @author Sebastian Tschan
  4. * @copyright (c) Sebastian Tschan
  5. * @license Modified MIT License
  6. * @link https://blueimp.net/ajax/
  7. */
  8.  
  9. // Overriding client side functionality:
  10.  
  11. /*
  12. // Example - Overriding the replaceCustomCommands method:
  13. ajaxChat.replaceCustomCommands = function(text, textParts) {
  14. return text;
  15. }
  16. */
  17. // example - welcome message:
  18. ajaxChat.customInitialize = function() {
  19. ajaxChat.addChatBotMessageToChatList('<h1>\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0WELCOME TO PSHOME4LIFE SHOTBOX...\n\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 PLEASE BE RESPECTFUL AND FOLLOW OUR RULES...\n\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 THANK YOU, PSHOME4LIFE STAFF! :)</h1> ');
  20. }
  21. //Replace stuff people say:
  22. ajaxChat.replaceCustomText = function(text) {
  23. text=text.replace(/fuck/gi, 'frick');
  24. text=text.replace(/fucker/gi, 'fricker');
  25. text=text.replace(/fucking/gi, 'fricking');
  26. text=text.replace(/mutherfucker/gi, 'motherlover');
  27. text=text.replace(/shit/gi, 'sheet');
  28. text=text.replace(/bitch/gi, 'deva');
  29. text=text.replace(/cock/gi, 'wanker');
  30. text=text.replace(/dick/gi, 'twig');
  31. text=text.replace(/pussy/gi, 'twit');
  32. text=text.replace(/cunt/gi, 'twat');
  33. text=text.replace(/nigger/gi, 'I am ignorant');
  34. text=text.replace(/nigga/gi, 'I am ignorant');
  35. text=text.replace(/niqqa/gi, 'I am ignorant');
  36. text=text.replace(/nicca/gi, 'I am ignorant');
  37. text=text.replace(/asshole/gi, 'bunghole');
  38. return text;
  39. }
  40. ajaxChat.replaceCustomCommands = function(text, textParts) {
  41. switch(textParts[0]) {
  42. case '/takeover':
  43. text=text.replace('/takeover', ' ');
  44. return '<span class="chatBotMessage">' + text + '</span>';
  45. default:
  46. return text;
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement