Skip to content

Instantly share code, notes, and snippets.

@kjmehta01
Last active January 20, 2016 06:33
Show Gist options
  • Save kjmehta01/d20ba98cbc145bffdaf6 to your computer and use it in GitHub Desktop.
Save kjmehta01/d20ba98cbc145bffdaf6 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Cam's Sounds
// @namespace http://tagpro.gg/
// @version 1.0
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://*.newcompte.fr:*
// @description Change the sounds of tagpro to Cam's sound pack.
// @author RonSpawnson, Cyanide, Seconskin, Cam, Acid Rap
// @reference https://www.reddit.com/r/TagPro/wiki/api
// ==/UserScript==
var customSounds = {
'drop': 'https://a.clyp.it/u4xkn4nz.mp3',
'friendlydrop': 'https://a.clyp.it/bmheasoj.mp3',
'cheering': 'https://a.clyp.it/tzf3isu4.mp3',
'sigh': 'https://a.clyp.it/l4cnwevl.mp3',
'burst': 'https://a.clyp.it/oxx1egzh.mp3',
'friendlyalert': 'https://a.clyp.it/flx4jjdf.mp3',
'alert': 'https://a.clyp.it/bi542q4c.mp3',
'pop': 'https://a.clyp.it/r45ia2oc.mp3',
'click': 'https://a.clyp.it/nlswdgoj.mp3',
'explosion': 'https://a.clyp.it/51sasefj.mp3',
'countdown': 'https://a.clyp.it/rs02xwd2.mp3',
'alertlong': 'https://a.clyp.it/dvpcs1ku.mp3',
'go': 'https://a.clyp.it/r2y3yrhs.mp3',
'degreeup': 'https://a.clyp.it/g5b0sdro.mp3',
'teleport': 'https://a.clyp.it/sghlyxz0.mp3',
'powerup': 'https://a.clyp.it/mo1ms21v.mp3'
};
for (var snd in customSounds) {
if (customSounds.hasOwnProperty(snd)) {
var el = document.getElementById(snd);
el.src = customSounds[snd];
el.load();
}
}
$("audio#countdown").get(0).src="https://a.clyp.it/3jovmies.mp3";
tagpro.ready(function () {
dropAudio = document.getElementById('powerup'); //Enemy FC returned
dropAudio.src = 'https://a.clyp.it/bpp1mszq.mp3';
dropAudio.load();
dropAudio2 = document.getElementById('teleport'); //Friendly FC returned
dropAudio2.src = 'https://a.clyp.it/euil2j42.mp3';
dropAudio2.load();
//dropAudio3 = document.getElementById('degreeup'); //Own team scores
//dropAudio3.src = 'https://a.clyp.it/4asd25l4.mp3';
//dropAudio3.load();
dropAudio4 = document.getElementById('go'); //Other team scores
dropAudio4.src = 'https://a.clyp.it/1rklq1jz.mp3';
dropAudio4.load();
dropAudio5 = document.getElementById('countdown');
dropAudio5.src = 'https://a.clyp.it/3jovmies.mp3';
dropAudio5.load();
//dropAudio6 = document.getElementById('alertlong'); //Enemy flag is grabbed
//dropAudio6.src = 'https://a.clyp.it/ckqz0rbk.mp3';
//dropAudio6.load();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment