coinwalk

snowy tampermonkey script

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