alarm giveaway 999dice


SUBMITTED BY: Guest

DATE: Sept. 22, 2014, 10:29 a.m.

FORMAT: Text only

SIZE: 1.2 kB

HITS: 532

  1. // copy kan kode nya ke tab console di browser anda, untuk CHrome : F12 ; untuk firefox : shfit+cntrl+k, tekan enter
  2. // untuk test suara, KETIK kaleng pada chat
  3. //refresh browser menyebabkan script hilang, copas lg ke konsol jika diinginkan
  4. // Acuhkan ignore warning..
  5. // sumbangan Gan, seikhlasnya..kesini:15uf132mS3xuUG2er674NHmxaeMUP8PtMY untuk tukang editnya, dan sumbangan untuk masternya : 17EqPZdWGZe2MzRMFyNsDevFM3744VdxgK
  6. var audio = {};
  7. audio["alert"] = new Audio();
  8. audio["alert"].src = "http://stupidlogic.com/uploads/codec.wav";
  9. function soundz() {
  10. audio["alert"].play();
  11. }
  12. $("#ChatTabChatContainer").bind("DOMSubtreeModified",function(){
  13. el = $(this);
  14. lastmsg = el.children().last('.ChatText').text();
  15. BtcRainButton = el.children().last('.ChatText').find('.TextButton').text();
  16. checkRain = (/BTC/i.test(BtcRainButton));
  17. soundtest = (/kaleng/i.test(lastmsg));
  18. // check cases
  19. if (( checkRain ) || ( soundtest ))
  20. // remove the soundtest condition above if you don't want it being abused
  21. { soundz(); } // play sound, duh
  22. });

comments powered by Disqus