Advertisement
coinwalk

snowy tampermonkey script

Jun 13th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. // ==UserScript==
  2. // @name snowy
  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 resetseed(){
  14. var a=document.getElementsByClassName('ManualSeedControls')[0];
  15. if(!a)return;
  16. if(a.style.display!='block'){
  17. console.log('Enabling manual seed');
  18. if(document.getElementById('AccountTabManualSeed')){
  19. document.getElementById('AccountTabManualSeed').click();
  20. }
  21. resetseed();
  22. }
  23. }
  24. resetseed();
  25. function getR(min, max) {
  26. min = Math.ceil(min);
  27. max = Math.floor(max);
  28. return Math.floor(Math.random() * (max - min + 1)) + min;
  29. }
  30. function go () {
  31. var xol =getR(1,3);
  32. $('#LastBetInfoSecret').unbind('DOMSubtreeModified')
  33. onBetComplete = function(e){
  34. var myseed;
  35. if (xol==1) {
  36. myseed = getR(7777,9999);
  37. } else if (xol==2) {
  38. myseed = getR(50000,77777);
  39. } else {
  40. myseed = getR(50,99);
  41. }
  42. setTimeout(() => {
  43. $(".ManualSeedControls:visible input").val(myseed)}, 50);
  44. }
  45. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  46. setInterval(() => go(), 51);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement