User:Mihawk Moha/chat.js

var chatags = { videos: true }; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:ChatOptions/code.js',        'u:kocka:MediaWiki:Emoticons.js',        'u:shining-armor:MediaWiki:ChatTags/code.js',        'u:dev:MediaWiki:!kick/code.js',        'MediaWiki:PrivateMessageAlert/code.js',        'u:dev:MediaWiki:!ban/code.js'    ] }); var PrivateMessageAlert = { beepSound: 'http://soundbible.com/grab.php?id=1645&type=mp3', // beepSound: ['http://soundbible.com/grab.php?id=1645&type=mp3', 'http://soundbible.com/grab.php?id=1815&type=mp3'], message: '$1 sent you a message!', notifications: true, alertWhileFocused: false };

$(function {   var commandsInterval = setInterval(function { if(window.commands) { clearInterval(commandsInterval); window.commands = $.extend({               salut: function(com, text) {                    $('#Write [name="message"]').val('Salut ¯\\_(ツ)_/¯');                    return true;                },                ahbon: function(com, text) {                    $('#Write [name="message"]').val('');                    return true;                }            }, window.commands); }   }, 100);    $('head').append(mw.html.element('meta', {        name: 'viewport',        content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'    })); });