MediaWiki:Chat.js

/* Clear chat */ function clearChatText { var $clearDiv = $(' ').addClass('chat-button'); var $clearLink = $('').addClass('wikia-button').text('Clear chat'); $clearDiv.html($clearLink); $clearLink.click(function {       $('.Chat li').remove;    }); return $clearDiv; }

// Chat's topic. Remember to escape single quotes in the topic using \' to prevent this from breaking. var chatTopic = 'Welcome to the Club Penguin Pookie Wiki chat. Please read the rules before chatting.'; $(function {    $('#ChatHeader .public.wordmark')        .prepend('' + chatTopic + ' ')        .find('a').attr('style','position:relative;text-decoration:none;'); }); $('#ChatHeader .public.wordmark div:not(:first-child)').remove;

// KockaEmoticons help text change window.kockaEmoticons = { vocab: { help: 'Choose an emoticon by clicking on it. Full list.' } };

//—————————————————————————————— ! ! ! ———————————————————————————————// /* Import scripts. NOTE: Place scripts configurations above this line */ importArticles({   type: 'script',    articles: [        'u:kocka:Emoticons/code.js', // EmoticonsWindow        'u:dev:Tabinsert.js', // Tab Insert        'u:dev:AjaxEmoticons/code.js', // AjaxEmoticons (so users don't have to refresh the chat to see the latest emoticons)        'u:dev:ChatAnnouncements/code.js',        'u:dev:ChatOptions/code.js',        'u:dev:ChatTags/code.js',        'u:dev:PrivateMessageAlert/code.js',        'u:dev:!kick/code.js',        'u:su:!mods.js'    ] });