User:Drake Blackhit/global.js

var qtUserPageTemplate = ''; importScriptPage('QQX/code.js', 'dev'); importScriptPage('WHAM/es/code.js', 'dev');

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importArticles({   type: 'script',    articles: [        'u:dev:Message/code.js'    ] }); importArticles({   type: 'script',    articles: [        'u:dev:Code/code.js'    ] }); importArticles({   type: 'script',    articles: [        'u:dev:PortableCSSPad/code.js'    ] });

// Links $('.WikiChatList').on('click', 'li#user-' + un, function {            if (!$('.custom').length) {                $(this).children('.UserStatsMenu').children('.actions').prepend('  Ignorar Usuario ');            }        }); // Ignorar Usuario var aa = JSON.parse(localStorage.getItem('block')), bb, i;       if (!localStorage.getItem('block') || localStorage.getItem('block') === 'undefined') { bb = ''; } else { for (i in aa) { if (aa.hasOwnProperty(i)) { $('head').append('.Chat li[data-user="' + aa[i] + '"]{display: none;}.Rail li[data-user="' + aa[i] + '"] span.username{text-decoration: line-through !important;} '); }           }        }        $('body').on('click', '.ignore', function  {            if (localStorage.getItem('block')) {                aa = JSON.parse(localStorage.getItem('block'));                bb = aa.join('\n');            }            $.showCustomModal('Ignorar Usuario', ' Por favor, introduce el nickname del usuario(s) que desea ignorar, Separando con Enter ' + bb + ' ', { id: 'block3', buttons: [ {                       message: 'Cancelar', handler: function { $('#block3').closeModal; }                   }, {                        message: "Limpiar", handler: function { $('#block2').val(''); }                   }, {                        defaultButton: true, message: 'Guardar', handler: function { var a = $('#block2').val, b = a.split('\n'), c;                           for (i = b.length; i--;) { if (b[i] === '') { b.splice(i, 1); }                               if (b[i] === un) { b.splice(i, 1); }                           }                            c = b.filter(function (elem, pos) {                                return b.indexOf(elem) === pos;                            }); localStorage.setItem('block', JSON.stringify(c)); $('head #block4').each(function {                                $(this).remove;                            }); for (var j = 0; j < c.length; j++) { $('head').append('.Chat li[data-user="' + c[j] + '"]{ display: none; } .Rail li[data-user="' + c[j] + '"] span.username{ text-decoration: line-through !important; } '); }                           $('#block3').closeModal; mainRoom.viewDiscussion.scrollToBottom; }                   }                ]            });            // Esconder        }).on('click', '.info li a, .custom li a', function  {            $('.UserStatsMenu').hide;