User:TarrakoT/global.js

$(function {    function checkPing {        var pingPhrases = $('#check-ping-phrases').val.split(',');        var pingSound = new Audio('https://www.myinstants.com/media/sounds/inceptionbutton.mp3');        $('.Chat li .message').each(function { if (!$(this).hasClass('ping-checked')) { for (var i = 0; i < pingPhrases.length; i++) { if ($(this).text.toString.indexOf($.trim(pingPhrases[i])) !== -1) { $(this).css('color', 'red'); pingSound.play; break; }

}                $(this).addClass('ping-checked'); }        });    }    if (mw.config.get('wgCanonicalSpecialPageName') === 'Chat') {        $pingPhrasesBox = $(' Список пингов  ');        $('.ChatHeader > .wordmark').append($pingPhrasesBox);        $('#check-ping-phrases').val(mw.config.get('wgUserName'));