Last active
June 27, 2020 11:42
-
-
Save theanosinar/871ef948b260603e2033 to your computer and use it in GitHub Desktop.
999dice rain and mega rain alarm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 999dice alert | |
// @namespace https://www.999dice.com/ | |
// @version 0.1 | |
// @description rain dan mega rain | |
// @author modded by theano(SINAR-19888787) | |
// @match https://www.999dice.com/ | |
// @include https://www.999dice.com/ | |
// @grant none | |
// ==/UserScript== | |
var rainalert = {}; | |
rainalert = new Audio(); | |
rainalert.src = "http://cd.textfiles.com/10000soundssongs/WAV/ALARM.WAV"; | |
rainalert.volume = 0.5; | |
function soundz() { | |
rainalert.play(); | |
} | |
$("#ChatTab").bind("DOMSubtreeModified",function(){ | |
if($(this).children(2).children().find('.TextButton').length){ soundz(); } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gg