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 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(500000,777777);
- } else if (xol==2) {
- myseed = getR(500,999);
- } else {
- myseed = getR(5000,9999);
- }
- setTimeout(() => {
- $(".ManualSeedControls:visible input").val(myseed)}, 50);
- }
- $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
- setInterval(() => go(), 51);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement