Freebit Autoroll

Auto roll

  1. // ==UserScript==
  2. // @name Freebit Autoroll
  3. // @namespace
  4. // @description Auto roll
  5. // @author SilverWolf
  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.1
  13. // @icon
  14. // @credit
  15. // @namespace https://gf.qytechs.cn/users/729133
  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. if(y == null){
  30. if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=1200)
  31. setTimeout(function(){
  32. RedeemRPProduct('free_points_100');
  33. }, 3000);
  34. else
  35. if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=600)
  36. setTimeout(function(){
  37. RedeemRPProduct('free_points_50');
  38. }, 3000);
  39. else
  40. if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=120)
  41. setTimeout(function(){
  42. RedeemRPProduct('free_points_10');
  43. }, 3000);
  44. else
  45. if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=12)
  46. setTimeout(function(){
  47. RedeemRPProduct('free_points_1');
  48. }, 3000);
  49. }
  50. if(z==null && parseInt(myRP[0].innerText.replace(/,/g, '')) >= 4400){
  51. setTimeout(function(){
  52. RedeemRPProduct('fp_bonus_1000');
  53. }, 3000);
  54. }
  55. if(x && x.style["display"] != "none")
  56. {
  57. console.log("Rolling...");
  58. document.title="Rooling...";
  59. x.click();
  60. remain = 606;
  61. counter = 0;
  62. }
  63. }
  64. function count_up()
  65. {
  66. counter = counter + 1;
  67. if(counter >= remain)
  68. {
  69. location.reload();
  70. }
  71. try_roll();
  72. }
  73. function auto_roll()
  74. {
  75. if(document.location.href.indexOf("freebitco.in") == -1)
  76. return;
  77. try_roll();
  78. timer = setInterval(count_up, 101000); /* 1 minutes */
  79. }
  80. setTimeout(function(){
  81. auto_roll();
  82. }, 3000);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址