// ==UserScript==
// @name Shoutbox New Message Sound
// @version 0.1
// @description Play a sound when someone sends a message in the shoutbox
// @match http://mg-s.us/mybb/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
dvz_shoutbox.awayTime = 0;
dvz_shoutbox.callbacks['update'].push(function(){
if ($('#shoutbox .entry.new').length) {
var audio = new Audio('http://priv.nowitam.pl/upload/dvz_shoutbox.mp3');
audio.volume = 0.2;
audio.play();
}
});
})();