EndPwn3Plugins/plugins/notifsound.js

20 lines
633 B
JavaScript
Raw Normal View History

exports.manifest = {
2018-05-13 18:17:49 +00:00
author: "dr1ft",
name: "Notification Sound Replacer",
description: "Replaces notification sound with an unused sound thats nicer."
2018-05-13 18:17:49 +00:00
}
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;
}
}
}