Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name snowy
- // @description This script will reset your 999dice seed automatically.
- // @author snowy
- // @match https:////www.999dice.com
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
- // @include https://www.999dice.com/
- // @grant none
- // ==/UserScript==
- this.$ = this.jQuery = jQuery.noConflict(true);
- function resetseed(){
- var a=document.getElementsByClassName('ManualSeedControls')[0];
- if(!a)return;
- if(a.style.display!='block'){
- console.log('Enabling manual seed');
- if(document.getElementById('AccountTabManualSeed')){
- document.getElementById('AccountTabManualSeed').click();
- }
- resetseed();
- }
- }
- resetseed();
- function getR(min, max) {
- min = Math.ceil(min);
- max = Math.floor(max);
- return Math.floor(Math.random() * (max - min + 1)) + min;
- }
- function go () {
- var xol =getR(1,3);
- $('#LastBetInfoSecret').unbind('DOMSubtreeModified')
- onBetComplete = function(e){
- var myseed;
- if (xol==1) {
- myseed = getR(7777,9999);
- } else if (xol==2) {
- myseed = getR(50000,77777);
- } else {
- myseed = getR(50,99);
- }
- setTimeout(() => {
- $(".ManualSeedControls:visible input").val(myseed)}, 50);
- }
- $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
- setInterval(() => go(), 51);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement