Author

Topic: Plugin script to defeat possible 999dice scamming of coins (Read 3919 times)

hero member
Activity: 1064
Merit: 505
another claim about a scam without any single proof. only kids here

no one said he is scamming, just that he could.
and it is really nice from the OP for fixing this and making sure he cant Wink

Well this section is called scam accusations so im pretty sure op said that they are scamming
sr. member
Activity: 266
Merit: 250
another claim about a scam without any single proof. only kids here

no one said he is scamming, just that he could.
and it is really nice from the OP for fixing this and making sure he cant Wink
full member
Activity: 420
Merit: 151
Had a bug in the script that wouldn't allow you to make new bets once you made one (worked on my end due to the developement mode I was in).

Sorry about that. Script updated.
full member
Activity: 420
Merit: 151
tested it , and it looks like you need to refresh page after each bet and re-paste back the script...

Didn't have to in chrome. What browser did you use? If you refresh, yes, you need to re-paste. Might be a browser issue tho.
legendary
Activity: 1470
Merit: 1004
another claim about a scam without any single proof. only kids here
hero member
Activity: 602
Merit: 501
tested it , and it looks like you need to refresh page after each bet and re-paste back the script...
hero member
Activity: 770
Merit: 504
(っ◔◡◔)っ🍪
Good, gonna try it tommorow.
Something like this should be procided for every dice site.
As for saving seeds, I,think you could use cookies for this  Cool
full member
Activity: 420
Merit: 151
Just providing it for those who don't believe it is a scam. It cant hurt.
legendary
Activity: 1162
Merit: 1001
Still takes a bunch of luck to beat the game anyway. If they are scamming, I would just avoid them.
sr. member
Activity: 574
Merit: 253
If a site is a scam site. Simple solution is simply don't play on it.

This!

They don't care what users in here talk because they made a good search engine optimization. When you search "bitcoin dice" in google, they are in first results. Enough for them.
full member
Activity: 206
Merit: 100
If a site is a scam site. Simple solution is simply don't play on it.
legendary
Activity: 2562
Merit: 1414
Earler in my other thread, I said that maybe I'd make a plugin to screw with 999dice's potential cheat system. After all the crap this has caused, and the crap I'd have to put up with, and given the fact that there is most likely nothing to come of all this (some bad publicity which people will soon forget), I wrote this.

If you bet at 999dice, after the page loads, hit ctrl-shift-J to open the javascript console. Copy the code below and paste it in there and hit enter.

What the script does:

It rewrites the place bets high and low buttons, so that instead of placing a bet, first it sets a randomly generated client seed (you can turn this off, change the first line to = false), it then requests the server seed, waits for it to load, THEN places the bet.

By using this script when you access 999dice, every bet you make will pull the server seed before placing the bet. If everyone starts using this, he'll likely go broke, as he can't cheat anyone anymore.

I hope to add the ability to save the seeds, but I've never done any javascript with saving a file, so thats not added yet. Would love to see any contributions anyone can make.

I was also going to make the script validate Loss bets, but the actual server seed is not available on the main page. I can likely get it with some ajax calls, but thats a lot of work for today. For now, this is good enough to make sure he never scams YOU.


Code:
var want_me_to_do_the_client_seed = true;
var hash = "null";
var clickcounter = 0;
var interval_id = 0;
var check_id = 0;
var curr_secret = $("#LastBetInfoSecret").html();

$("#AccountTabManualSeed").prop('checked', true);
$(".ManualSeedControls").show();

function checkbet() {
  var secret = $("#LastBetInfoSecret").html();
  if(secret == curr_secret)
    return;
  curr_secret = secret;
  clearInterval(check_id);
  // Hope to add bet verification here soon  
}

function fairclick(hilo) {
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null") {
    clickcounter++;
    if(clickcounter >= 8) {
      clearInterval(interval_id);
      clickcounter = 0;
      alert('Error loading/finding server hash. Bet not placed. Try again?');
    }
    return;
  }
  clearInterval(interval_id);
  last_hash = hash;
  if(hilo == "Low")
    view.controls.betLow();
  else
    view.controls.betHigh();

  check_id = setInterval(checkbet, 250);
}

$("#BetLowButton").children(".BetControlTitle").html("Bet Low
(FAIRLY!)");
$("#BetLowButton").children(".BetControlTitle").css("font-size", 18);
$("#BetLowButton").unbind("click");
$("#BetLowButton").click(function() {
  if(clickcounter)
    return;
  if(want_me_to_do_the_client_seed) {
    var newseed = Math.floor(Math.random() * 999999999);
    $(".ManualSeedControls:visible input").val(newseed);  
    $("#FairTabClientSeed").val(newseed);
    view.controls.updateClientSeed();
  }
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null")
    $(".FairTabReveal").trigger("click");
  interval_id = setInterval(fairclick, 250, "Low");
});

$("#BetHighButton").children(".BetControlTitle").html("Bet High
(FAIRLY!)");
$("#BetHighButton").children(".BetControlTitle").css("font-size", 18);
$("#BetHighButton").unbind("click");
$("#BetHighButton").click(function() {
  if(clickcounter)
    return;
  if(want_me_to_do_the_client_seed) {
    var newseed = Math.floor(Math.random() * 999999999);
    $(".ManualSeedControls:visible input").val(newseed);  
    $("#FairTabClientSeed").val(newseed);
    view.controls.updateClientSeed();
  }
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null")
    $(".FairTabReveal").trigger("click");
  interval_id = setInterval(fairclick, 250, "High");
});

either way we still need some luck to win at gambling site even by forcing 999dice to show seedhash before the bet, btw to clarify, anyone tried this script already?
full member
Activity: 420
Merit: 151
Earler in my other thread, I said that maybe I'd make a plugin to screw with 999dice's potential cheat system. After all the crap this has caused, and the crap I'd have to put up with, and given the fact that there is most likely nothing to come of all this (some bad publicity which people will soon forget), I wrote this.

If you bet at 999dice, after the page loads, hit ctrl-shift-J to open the javascript console. Copy the code below and paste it in there and hit enter.

What the script does:

It rewrites the place bets high and low buttons, so that instead of placing a bet, first it sets a randomly generated client seed (you can turn this off, change the first line to = false), it then requests the server seed, waits for it to load, THEN places the bet.

By using this script when you access 999dice, every bet you make will pull the server seed before placing the bet. If everyone starts using this, he'll likely go broke, as he can't cheat anyone anymore.

I hope to add the ability to save the seeds, but I've never done any javascript with saving a file, so thats not added yet. Would love to see any contributions anyone can make.

I was also going to make the script validate Loss bets, but the actual server seed is not available on the main page. I can likely get it with some ajax calls, but thats a lot of work for today. For now, this is good enough to make sure he never scams YOU.


Code:
var want_me_to_do_the_client_seed = true;
var hash = "null";
var clickcounter = 0;
var interval_id = 0;
var check_id = 0;
var curr_secret = $("#LastBetInfoSecret").html();

$("#AccountTabManualSeed").prop('checked', true);
$(".ManualSeedControls").show();

function checkbet() {
  var secret = $("#LastBetInfoSecret").html();
  if(secret == curr_secret)
    return;
  curr_secret = secret;
  clearInterval(check_id);
  // Hope to add bet verification here soon  
}

function fairclick(hilo) {
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null") {
    clickcounter++;
    if(clickcounter >= 8) {
      clearInterval(interval_id);
      clickcounter = 0;
      alert('Error loading/finding server hash. Bet not placed. Try again?');
    }
    return;
  }
  clickcounter = 0;
  clearInterval(interval_id);
  last_hash = hash;
  if(hilo == "Low")
    view.controls.betLow();
  else
    view.controls.betHigh();

  check_id = setInterval(checkbet, 250);
}

$("#BetLowButton").children(".BetControlTitle").html("Bet Low
(FAIRLY!)");
$("#BetLowButton").children(".BetControlTitle").css("font-size", 18);
$("#BetLowButton").unbind("click");
$("#BetLowButton").click(function() {
  if(clickcounter)
    return;
  if(want_me_to_do_the_client_seed) {
    var newseed = Math.floor(Math.random() * 999999999);
    $(".ManualSeedControls:visible input").val(newseed);  
    $("#FairTabClientSeed").val(newseed);
    view.controls.updateClientSeed();
  }
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null")
    $(".FairTabReveal").trigger("click");
  interval_id = setInterval(fairclick, 250, "Low");
});

$("#BetHighButton").children(".BetControlTitle").html("Bet High
(FAIRLY!)");
$("#BetHighButton").children(".BetControlTitle").css("font-size", 18);
$("#BetHighButton").unbind("click");
$("#BetHighButton").click(function() {
  if(clickcounter)
    return;
  if(want_me_to_do_the_client_seed) {
    var newseed = Math.floor(Math.random() * 999999999);
    $(".ManualSeedControls:visible input").val(newseed);  
    $("#FairTabClientSeed").val(newseed);
    view.controls.updateClientSeed();
  }
  hash = $(".FairTabServerSeedHash").html();
  if(hash == "null")
    $(".FairTabReveal").trigger("click");
  interval_id = setInterval(fairclick, 250, "High");
});
Jump to: