999dice rain alert new April 2015


SUBMITTED BY: Guest

DATE: April 14, 2015, 5:29 p.m.

FORMAT: Text only

SIZE: 795 Bytes

HITS: 777

  1. if (location.hostname == 'www.999dice.com') {
  2. function soundz() {
  3. window.audio = {};
  4. audio["alert"] = new Audio();
  5. audio["alert"].src = "https://cdn.rawgit.com/hamboning/999dice-toys/master/codec.wav";
  6. window.audio["alert"].play();
  7. return false;
  8. }
  9. function AlertButton() {
  10. //
  11. BtcRainButton = $(".Rain").text()
  12. checkRainMax = (/BTC/i.test(BtcRainButton));
  13. if (checkRainMax)
  14. {
  15. soundz();
  16. }
  17. }
  18. $('#ChatTab').bind('DOMSubtreeModified', AlertButton);
  19. }

comments powered by Disqus