Freebitco.in Simple Auto-roll Delayed to work with captcha solvers

Auto roll

  1. // ==UserScript==
  2. // @name Freebitco.in Simple Auto-roll Delayed to work with captcha solvers
  3. // @namespace
  4. // @description Auto roll
  5. // @author CryptClick.cc
  6. // @include https://freebitco.in/*
  7. // @run-at document-end
  8. // @grant GM_addStyle
  9. // @grant GM_getResourceURL
  10. // @grant GM_xmlhttpRequest
  11. // @grant unsafeWindow
  12. // @version 0.0.2
  13. // @icon
  14. // @credit
  15. // @namespace https://greasyfork.org/users/858653
  16. // ==/UserScript==
  17. var timer = undefined;
  18. var counter = 0;
  19. var remain = 60*6;
  20.  
  21. function try_roll()
  22. {
  23. var x = document.querySelector("#free_play_form_button"),
  24. myRP = document.getElementsByClassName("user_reward_points"),
  25. y = document.getElementById("bonus_container_free_points"),
  26. z = document.getElementById("bonus_container_fp_bonus");
  27. console.log("Detect if we can roll");
  28. document.title="Can we roll?";
  29.  
  30.  
  31. if(x && x.style["display"] != "none")
  32. {
  33. console.log("Rolling...");
  34. document.title="Rooling...";
  35. x.click();
  36. remain = 606;
  37. counter = 0;
  38. }
  39. }
  40. function count_up()
  41. {
  42. counter = counter + 1;
  43. if(counter >= remain)
  44. {
  45. location.reload();
  46. }
  47. try_roll();
  48. }
  49. function auto_roll()
  50. {
  51. if(document.location.href.indexOf("freebitco.in") == -1)
  52. return;
  53. try_roll();
  54. timer = setInterval(count_up, 101000); /* 1 minutes */
  55. }
  56. setTimeout(function(){
  57. auto_roll();
  58. }, 45000);