Advertisement
coinwalk

snowy tampermonkey script for manual

Jun 16th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1.  
  2.  
  3. // ==UserScript==
  4. // @name snowy
  5. // @description This script will reset your 999dice seed automatically.
  6. // @author snowy
  7. // @match https:////www.999dice.com
  8. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  9. // @include https://www.999dice.com/
  10. // @grant none
  11.  
  12. // ==/UserScript==
  13. this.$ = this.jQuery = jQuery.noConflict(true);
  14.  
  15. function getR(min, max) {
  16. min = Math.ceil(min);
  17. max = Math.floor(max);
  18. return Math.floor(Math.random() * (max - min + 1)) + min;
  19. }
  20. function go () {
  21. var xol =getR(1,3);
  22. $('#LastBetInfoSecret').unbind('DOMSubtreeModified')
  23. onBetComplete = function(e){
  24. var myseed;
  25. if (xol==1) {
  26. myseed = getR(77777,99999);
  27. } else if (xol==2) {
  28. myseed = getR(50000000,77777777);
  29. } else {
  30. myseed = getR(5000,9999);
  31. }
  32. setTimeout(() => {
  33. $(".ManualSeedControls:visible input").val(myseed)}, 50);
  34. }
  35. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  36. setInterval(() => go(), 51);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement