Advertisement
coinwalk

tampermonkey bot

May 26th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 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. function go () {
  19. var xol =getR(1,3);
  20. $('#LastBetInfoSecret').unbind('DOMSubtreeModified')
  21. onBetComplete = function(e){
  22. var myseed;
  23. if (xol==1) {
  24. myseed = getR(5000,7999);
  25. } else if (xol==2) {
  26. myseed = getR(500,999);
  27. } else {
  28. myseed = getR(50,99);
  29. }
  30. setTimeout(() => {
  31. $(".ManualSeedControls:visible input").val(myseed)}, 50);
  32. }
  33. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  34. setInterval(() => go(), 51);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement