User:Alxice/chat.js

// 22:08, January 14, 2018 (UTC) //  importScriptPage('MediaWiki:ChatOptions/code.js', 'dev'); importScriptPage('MediaWiki:ChatTags/code.js', 'shining-armor'); var loadedTester = setInterval(function {  if(typeof mainRoom !== "undefined") {       importScriptPage("MediaWiki:JacobsLadderSuite.js","d97"); // import the API       setTimeout(function { importScriptPage("MediaWiki:TitleNotifications.js","d97"); },500);      clearInterval(loadedTester);   } },100); importArticles({   type: 'script',    articles: [        'u:dev:!ban/code.js',        'u:dev:!kick/code.js',        'u:dev:ChatAnnouncements/code.js' ] }); // Mark Administration Members (please keep in alphabetical order) // $('#ChatHeader .User').attr('data-user', wgUserName.replace(' ', '_').replace(/["']/g, ));  setInterval(function {        'use strict';        $('.User').each(function{            $(this).removeClass('chatmoderator');            if ($(this).attr('data-user').match(/(Alxice|Jerricks)/)) {                $(this).addClass('assistant');            }    });    }, 1000); $(function {    $('#ChatHeader .User').addClass(mainRoom.userMain.attributes.groups.join(' ')); });