Autoroll & Redeem Nothing

Auto Roll Only

当前为 2021-07-28 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Autoroll & Redeem Nothing
  3. // @namespace Auto-Roll & Redeem Nothing v1
  4. // @description Auto Roll Only
  5. // @author GypsyMan
  6. // @include https://freebitco.in/*
  7. // @run-at document-end
  8. // @grant https://freebitco.in/?r=36226395
  9. // @grant GM_getResourceURL
  10. // @grant GM_xmlhttpRequest
  11. // @grant unsafeWindow
  12. // @version 0.0.1
  13. // @icon
  14. // @credit
  15. // ==/UserScript==
  16. var timer = undefined;
  17. var counter = 0;
  18. var remain = 60*6;
  19.  
  20. function try_roll()
  21. {
  22. var x = document.querySelector("#free_play_form_button"),
  23. myRP = document.getElementsByClassName("user_reward_points"),
  24. y = document.getElementById("bonus_container_free_points"),
  25. z = document.getElementById("bonus_container_fp_bonus");
  26. console.log("Detect if we can roll");
  27. document.title="Can we roll?";
  28. if(y == null){
  29. if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=120)
  30. setTimeout(function(){
  31. // RedeemRPProduct('free_points_10');
  32. }, 3000);
  33. else
  34. if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=12)
  35. setTimeout(function(){
  36. // RedeemRPProduct('free_points_1');
  37. }, 3000);
  38. }
  39. if(z==null && parseInt(myRP[0].innerText.replace(/,/g, '')) >= 4400){
  40. setTimeout(function(){
  41. // RedeemRPProduct('fp_bonus_10');
  42. }, 3000);
  43. }
  44. if(x && x.style["display"] != "none")
  45. {
  46. console.log("Rolling...");
  47. document.title="Rooling...";
  48. x.click();
  49. remain = 606;
  50. counter = 0;
  51. }
  52. }
  53. function count_up()
  54. {
  55. counter = counter + 1;
  56. if(counter >= remain)
  57. {
  58. location.reload();
  59. }
  60. try_roll();
  61. }
  62. function auto_roll()
  63. {
  64. if(document.location.href.indexOf("freebitco.in") == -1)
  65. return;
  66. try_roll();
  67. timer = setInterval(count_up, 101000); /* 1 minutes */
  68. }
  69. setTimeout(function(){
  70. auto_roll();
  71. }, 3000);