User:Cheeseskates/chat.js

////////////////////////////////////////////////////////////////////////////////

/* -- -- */ ////////////////////////////////////////////////////////////////////////////////
 * * Name:       Global Chat JavaScript                                      |
 * * Author:     Sophiedp - Cheeseskates                                     |
 * * Description: This is my chat.js that can load on all wikis like         |
 * global.js can. It is thanks to Sophiedp's script you can   |
 * put in TamperMonkey.                                       |
 * https://openuserjs.org/scripts/LunarTwilight/Load_global.js_in_chat/source |
 * put in TamperMonkey.                                       |
 * https://openuserjs.org/scripts/LunarTwilight/Load_global.js_in_chat/source |
 * https://openuserjs.org/scripts/LunarTwilight/Load_global.js_in_chat/source |

//————————————————————————————————————————————————————————————————————————————// // Direct JavaScript code // //————————————————————————————————————————————————————————————————————————————//

/**/ ///————————————————————— Major Direct JavaScript code ———————————————————————/// /**/

/* -- */ // Load up the ping color var PING_COLOR = "#F00";
 * * Name:       PICCOLO                                                         |
 * * Author:     Akivirus                                                        |
 * * Description: w:c:steven-universe:User blog:Akrivus/Akri's Amazing Script |
 * * Description: w:c:steven-universe:User blog:Akrivus/Akri's Amazing Script |
 * * Description: w:c:steven-universe:User blog:Akrivus/Akri's Amazing Script |

// Loads the styles for the script. importArticles({ type: "style",  articles: [    "u:akrivus:User:Akrivus/chat.css",    "u:su:User:Akrivus/chat.css"  ] });

// Load the script up itself. importArticles({ type: "script",  articles: [    "u:akrivus:User:Akrivus/chat.js"  ] });

/**/ ///————————————————————— Minor Direct JavaScript code ———————————————————————/// /**/

/* -- -- */
 * * Name:       Slash commands                                              |
 * * Author:     Cheeseskates                                                |
 * * Description: Using slash commands, I can generate preset messages       |
 * through typing a short word or phrase that would be similar |
 * to the preset message. This helps send messages quickly    |
 * while taking action as fast as possible.                   |
 * e.g. warning and kicking.                                  |
 * while taking action as fast as possible.                   |
 * e.g. warning and kicking.                                  |

$('[name="message"]').keypress(function(event) { if (32 == event.which || 13 == event.which) {    switch(this.value) {      case "/coppa":        this.value = "COPPA – You must be 13 or older to legally have an account on Wikia.";        break;      case "/h":        this.value = "o/ Hello, everyone! o/ (automatic)";        break;      case "/sc":        this.value = "You can use Special:Contact/general to contact Fandom Staff.";        break;    }  } });

//// // ——————————————————— End Direct Import JavaScript Code ———————————————————— // ////

//————————————————————————————————————————————————————————————————————————————// // Script Configurations -// //————————————————————————————————————————————————————————————————————————————//

// ChatBlockButton Configuration chatBlockReason = [ "Vandalism", "Gross incivility", "Excessive misconduct", "Troll", "Spam", "Disruption-only account", "Flooding", "Accessory before the fact", "Conformity to disruption", "Harassment", "False accusation", "Defamation", "GTS", "fraudulent impersonation", "Compromised", "Unauthorized bot", "Unsolicited canvassing", "Cross-wiki drama (Preventive)", "Banditry", "Shock", "Sockpuppetry", "Sockpuppet", "Meatpuppet", "Sharing illegal content", "Violating Fandom's ToU" ];

// QuickModTools Configuration window.QuickModTools = { quickreasons: [ "Gross incivility", "Excessive misconduct", "Troll", "Spam", "Disruption-only account", "Flooding", "Accessory before the fact", "Conformity to disruption", "Harassment", "False accusation", "Defamation", "GTS", "fraudulent impersonation", "Compromised", "Unauthorized bot", "Unsolicited canvassing", "Cross-wiki drama (Preventive)", "Banditry", "Shock", "Sockpuppetry", "Sockpuppet", "Meatpuppet", "Sharing illegal content", "Violating Fandom's ToU" ] };

//// // ——————————————————————— End Configuration Section ———————————————————————— // ////

//————————————————————————————————————————————————————————————————————————————// // Imports ---// //————————————————————————————————————————————————————————————————————————————//

$(function { importArticles({ type: "script", articles: [ "u:dev:MediaWiki:BlinkingTabAlert.js",           // w:c:dev:BlinkingTabAlert "u:dev:MediaWiki:ChatButtonsCollectionDeluxe.js", // w:c:dev:ChatButtonsCollection "u:dev:MediaWiki:ChatModHover/code.js",          // w:c:dev:ChatModHover "u:dev:MediaWiki:ChatOptions/code.js",           // w:c:dev:ChatOptions "u:dev:MediaWiki:FasterBanModule/code.js",       // w:c:dev:FasterBanModule "u:dev:MediaWiki:MessageBlocker/code.js",        // w:c:dev:MessageBlocker "u:dev:MediaWiki:QuickModTools/code.js",         // w:c:dev:QuickModTools "u:dev:MediaWiki:ResponsivePrivateList/code.js"  // w:c:dev:ResponsivePrivateList ] }); });

//// // —————————————————— End ImportArticles section and page ——————————————————— // ////