User:AlternativeHuman93/chat.js

/** * Clear chat */ function addClearChatText { "use strict"; if ($('.clearChatText').length <= 0) { var clearChatText = document.createElement('span'); $('Clear chat ').prependTo('.Rail'); } } function clearChat { "use strict"; var chatSize = $('div.Chat:first ul li').size - 1; $('.Chat:first li:lt(' + chatSize + ')').remove; } window.onload = addClearChatText; var chatags = { images: true, videos: true }; importArticles( {   type: 'script',    articles: [        'u:dev:MediaWiki:!mods/code.js',        'u:dev:MediaWiki:ChatOptions/code.js',        'u:shining-armor:MediaWiki:ChatTags/code.js'    ] } ); importArticles({   type: 'script',    articles: [        // ...        'u:kocka:MediaWiki:Emoticons/code.js',        // ...    ] }); importArticles({   type: 'script',    articles: [        'u:dev:NewMessageCount.js'    ] }); importArticles({   type: "script",    articles: [        // ...        "u:dev:IsTyping/code.js",        // ...    ] }); window.IsTyping = { $indicator: $(' ', {       class: 'typing-indicator'    }).appendTo('body'), noStyle: true, doScroll: false }