Greasy Fork 还支持 简体中文。

playground hustler with sound

makes beep when theres more than one player in paid room. usefull if you're alone in lowroll so you can go on another tab while waiting.

  1. // ==UserScript==
  2. // @name playground hustler with sound
  3. // @namespace namespace
  4. // @description makes beep when theres more than one player in paid room. usefull if you're alone in lowroll so you can go on another tab while waiting.
  5. // @include http://chopcoin.io/*
  6. // @version 1.1111
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10.  
  11. var playOnce = true;
  12. checkPlayers();
  13.  
  14. function checkPlayers() {
  15. var players = chopcoin.game.leaderboard.list.length;
  16. var pot = chopcoin.game.pot;
  17. if (players > 1 && playOnce && pot != 0) {
  18. //alert('multiple players');
  19. document.head.innerHTML += "<video controls=\"\" id=\"beep\" autoplay=\"\" name=\"media\" style=\"display:none;\"><source src=\"http://www.freesfx.co.uk/rx2/mp3s/7/8494_1353333227.mp3\" type=\"audio/mpeg\" /></video>";
  20. playOnce = false;
  21. console.log('multiple players');
  22. }
  23. else if (players <= 1) {
  24. playOnce = true;
  25. beepElement = document.getElementById('beep');
  26. if (beepElement) beep.parentElement.removeChild(beep);
  27. console.log('player reset');
  28. }
  29. setTimeout(function(){ checkPlayers(); }, 200);
  30. }