kapko

Untitled

Sep 25th, 2023
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. console.info("Activated script");
  2. Number.prototype.Crop = function (x) {
  3. var s = this + "", a = s.split(".");
  4. a[1] = a[1] || "";
  5. return parseFloat(a[0] + "." + a[1].substring(0, x));
  6. };
  7. var i = true;
  8. var t = 0;
  9. var zaderjka = 1e3;
  10. setInterval(function () {
  11. if ($("#free_play_digits").css("display") != "none") {
  12. t++;
  13. if (zaderjka > t && $("#free_play_result").css("display") == "none") {
  14. $("#multiplier_first_digit").html(Math.floor(Math.random() * 10));
  15. $("#multiplier_second_digit").html(Math.floor(Math.random() * 10));
  16. $("#multiplier_third_digit").html(Math.floor(Math.random() * 10));
  17. $("#multiplier_fourth_digit").html(Math.floor(Math.random() * 10));
  18. $("#multiplier_fifth_digit").html(Math.floor(Math.random() * 10));
  19. } else {
  20. $("#free_play_first_digit").html(1);
  21. $("#free_play_second_digit").html(0);
  22. $("#free_play_third_digit").html(0);
  23. $("#free_play_fourth_digit").html(0);
  24. $("#free_play_fifth_digit").html(0);
  25. $("#winnings").html($(".br_0_0_5_0")[0].innerHTML.split(" ")[0]);
  26. if (i) {
  27. i = false;
  28. var number = parseFloat($("#balance").html()) + parseFloat($(".br_0_0_5_0")[0].innerHTML.split(" ")[0]);
  29. number = number.Crop(8);
  30. localStorage.balance = number;
  31. $("#balance").html(number);
  32. }
  33. }
  34. }
  35. if (i == false) {
  36. $("#balance").html(localStorage.balance);
  37. }
  38. }, 1);
  39.  
Advertisement
Add Comment
Please, Sign In to add comment