EndPwn3Plugins/plugins/notifsound.js

20 lines
No EOL
633 B
JavaScript

exports.manifest = {
author: "dr1ft",
name: "Notification Sound Replacer",
description: "Replaces notification sound with an unused sound thats nicer."
}
exports.start = function(){
var s = wc.findFunc('playSound')[1].exports;
s.playSoundOriginal = s.playSound;
s.playSound = function (e) {
switch (e) {
case "message1":
return s.playSoundOriginal('message3');
//new Audio(window._sndURL).play();
//return s.playSoundOriginal(e, 0);
default:
return s.playSoundOriginal(e);
break;
}
}
}