User:Ultimate Dark Carnage/chat.js

importArticles(/*{   type: 'script',    articles: [        "u:dev:MessageBlocker/code.js",        "u:c:User:Ultimate_Dark_Carnage/commands.js",        "u:c:User:Ultimate_Dark_Carnage/test.js",        "u:c:User:Ultimate_Dark_Carnage/sandbox2.js"    ] }, */{    'type': 'style',    articles: [        'u:c:User:Ultimate_Dark_Carnage/chat2.css'    ] });

/* jQuery(function($){   if (mw.config.get('wgCanonicalSpecialPageName') == "Chat"){        var chatMenu = {            modules: {},            ui: {                colorChanger: function(name, id, elem, colors){                    var changer_html = $(' ', { "class": "colorChangerSection menuUI-item", "data-id": id, html: function{ var content = '' + ' ' + name + ' ' + ' ' + name + ' ' + ' ',                               colors_default = ['#000000', '#000080', '#5f5f5f', '#808080', '#ffffff', '#0000af', '#008080', '#00af80', '#00afaf', '#00ffff']; if (colors.length){ for (var i = 0; i < colors.length; i++){ if (colors_default.indexOf(colors[i]) === -1){ colors_default.push(colors[i]); }                               }                            }                            content += '' + '' + '' + '' + ' ' +                                               '' + ' ' +                                           ' ' +                                                ''; content += (function(c){                               var color_box = color_box || '';                                for (var j = 0; j < colors_default.length; j++){                                    var color = colors_default[j];                                    color_box += ' ' + color + ' ';                                }                                if (color_box.indexOf('#') > -1){                                    return color_box;                                }                            })(colors); content += '' + ' ' +                                   ' ' +                                        'Submit' + ' ' +                               ' ' +                            ' ' +                            ' ';                            return content; }                   });                    $(elem || '.ChatWindow').append(changer_html);                }            },            fn: {                commands: function(target){                }            },            enabled: false,            config: {                commands: function{                }            }        };    } });