kwamejayt447

reward points autoclaimer( jan 2018)

Apr 12th, 2018
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name R.P.A.F Freebitco.in auto collector
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author David O'Neill
  7. // @match https://freebitco.in/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var body = $('body');
  14.  
  15.  
  16.  
  17. var points = {};
  18.  
  19.  
  20.  
  21. if ($('#free_play_form_button').is(':visible'))
  22.  
  23.  
  24. setTimeout(function(){ $('#free_play_form_button').click();},2000);
  25.  
  26. if ($('.close-reveal-modal').is(':visible'))
  27.  
  28. setTimeout(function(){ $('.close-reveal-modal').click(); },2000);
  29.  
  30.  
  31.  
  32. var reward = {};
  33.  
  34. reward.select = function() {
  35.  
  36. reward.points = parseInt($('.user_reward_points').text().replace(',',""));
  37. reward.bonustime = {};
  38. if ($("#bonus_container_free_points").length != 0) {
  39. reward.bonustime.text = $('#bonus_span_free_points').text();
  40. reward.bonustime.hour = parseInt(reward.bonustime.text.split(":")[0]);
  41. reward.bomustime.min = parseInt(reward.bonustime.text.split(":")[1]);
  42. reward.bonustime.sec = parseInt(reward.bonustime.text.split(":")[2]);
  43. reward.bonustime.current = reward.bonustime.hour * 3600 + reward.bonustime.min * 60 + reward.bonustime.sec;
  44. } else
  45. reward.bonustime.current = 0;
  46.  
  47. console.log(reward.bonustime.current);
  48. if (reward.bonustime.current !== 0) {
  49. console.log(reward.bonustime.current);
  50. } else {
  51. if (reward.points < 12) {
  52. console.log("waiting for 12 points");
  53. }
  54. else if (reward.points < 120) {
  55. console.log("waiting for 60 points");
  56. RedeemRPProduct('free_points_1');
  57. }
  58. else if (reward.points < 600) {
  59. console.log("waiting for 120 points");
  60. RedeemRPProduct('free_points_10');
  61. }
  62. else if (reward.points < 1200) {
  63. console.log("waiting for 600 points");
  64. RedeemRPProduct('free_points_50');
  65. }
  66. else {
  67. console.log("100 Free points per roll active");
  68. RedeemRPProduct('free_points_100');
  69. }
  70.  
  71. }
  72. };
  73. body.prepend(
  74. $('<div/>').attr('style',"position:fixed;top:45px;left:0;z.index:999;width:350px;background-color:blue;color:white; text-align: left;")
  75. .append(
  76. $('<div/>').attr('id','autofaucet')
  77. .append($('<p/>').attr('style','text-decoration:underline;text-align:center;').text("Freebitco.in Auto Collector By David O'Neill"))
  78. .append($('<p/>').attr('style','text-align:center;').text("Reward Points Autoclaim Function Only"))
  79. .append($('<p/>')
  80. )
  81. )
  82.  
  83. ).prepend($('<style/>')
  84. .text("#autofaucet p { margin: 0; margin-left: 2px; text-align: left; }")
  85. );
  86. setTimeout(reward.select,1000);
  87. setInterval(reward.select,60000);
  88. // Your code here...
  89. })();
Add Comment
Please, Sign In to add comment