bot crytpo free


SUBMITTED BY: PimpDaddy

DATE: Aug. 16, 2022, 4:51 p.m.

UPDATED: Aug. 16, 2022, 4:52 p.m.

FORMAT: Text only

SIZE: 15.0 kB

HITS: 629

  1. // ==UserScript==
  2. // @name Free coins from Bitgames.io
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description free autoroll faucet
  6. // @author elmer76
  7. // @license MIT
  8. // @match https://faucet.bitgames.io/*
  9. // @match https://www.bitgames.io/*
  10. // @icon https://www.google.com/s2/favicons?domain=bitgames.io
  11. // @connect faucet.bitgames.io
  12. // @connect www.bitgames.io
  13. // @grant GM_xmlhttpRequest
  14. // ==/UserScript==
  15. /*
  16. ================================================================================================================================================== |
  17. | donate please btc : 36v6NbQCeDp1LHDtpJgoBMq7u3J5zWipDW TY and enjoy |
  18. | Please use my referal link https://www.bitgames.io/?affid=12352291 |
  19. ==================================================================================================================================================
  20. */
  21. (function() {
  22. 'use strict';
  23. var clicked = false;
  24. var websiteData = [{url : "https://www.bitgames.io/offerwalls/faucet/", regex: "faucet"},{url : "https://www.bitgames.io/offerwalls/"},];
  25. var websiteMap = [{website: ["bitgames.io"],additionalFunctions: bitgames,allMessageSelectors: ["div.title"],messagesToCheckBeforeMovingToNextUrl: ["You can mine in"],timeoutbeforeMovingToNextUrl: 270000},];
  26. function triggerEvent(el, type) {
  27. try{
  28. var e = document.createEvent('HTMLEvents');
  29. e.initEvent(type, false, true);
  30. el.dispatchEvent(e);
  31. }catch(exception){
  32. console.log(exception);
  33. }
  34. }
  35. function toggleCaptcha(selector, index){
  36. document.querySelector(selector).selectedIndex = index;
  37. var targetNode = document.querySelector(selector);
  38. if (targetNode) {
  39. setTimeout(function() {
  40. triggerEvent(targetNode, 'change');
  41. }, 5000);
  42. }
  43. }
  44. String.prototype.includesOneOf = function(arrayOfStrings) {
  45. if (!Array.isArray(arrayOfStrings)) {
  46. return this.toLowerCase().includes(arrayOfStrings.toLowerCase());
  47. }
  48. for (var i = 0; i < arrayOfStrings.length; i++) {
  49. if (this.toLowerCase().includes(arrayOfStrings[i].toLowerCase())) {
  50. return true;
  51. }
  52. }
  53. return false;
  54. }
  55. var websiteDataValues = {};
  56. for (let value of Object.values(websiteMap)) {
  57. if(window.location.href.includesOneOf(value.website)){
  58. websiteDataValues.inputTextSelector= value.inputTextSelector;
  59. websiteDataValues.inputTextSelectorButton = value.inputTextSelectorButton;
  60. websiteDataValues.defaultButtonSelectors = value.defaultButtonSelectors;
  61. websiteDataValues.claimButtonSelector = value.claimButtonSelector;
  62. websiteDataValues.captchaButtonSubmitSelector = value.captchaButtonSubmitSelector;
  63. websiteDataValues.allMessageSelectors = value.allMessageSelectors;
  64. websiteDataValues.messagesToCheckBeforeMovingToNextUrl = value.messagesToCheckBeforeMovingToNextUrl;
  65. websiteDataValues.successMessageSelectors = value.successMessageSelectors;
  66. websiteDataValues.toggleCaptchaSelector = value.toggleCaptchaSelector;
  67. websiteDataValues.toggleCaptchaSelectorIndex = value.toggleCaptchaSelectorIndex;
  68. websiteDataValues.timeoutbeforeMovingToNextUrl = value.timeoutbeforeMovingToNextUrl;
  69. websiteDataValues.additionalFunctions = value.additionalFunctions;
  70. break;
  71. }
  72. }
  73. var count = 0;
  74. var addressAssigned = false;
  75. for (let value of Object.values(websiteData)) {
  76. count = count + 1;
  77. if(value.url.includes(window.location.hostname) && window.location.href.includes("/" + value.regex)){
  78. addressAssigned = true;
  79. break;
  80. }
  81. }
  82. if(!addressAssigned){
  83. count = 0;
  84. for (let value of Object.values(websiteData)) {
  85. count = count + 1;
  86. if(value.url.includes(window.location.hostname) && !value.regex){
  87. addressAssigned = true;
  88. break;
  89. }
  90. }
  91. }
  92. async function getNextUrl(){
  93. if(count >= websiteData.length){
  94. count = 0;
  95. websiteDataValues.nextUrl = websiteData[count].url;
  96. }else{
  97. websiteDataValues.nextUrl = websiteData[count].url;
  98. }
  99. pingTest(websiteDataValues.nextUrl);
  100. }
  101. var isNextUrlReachable = false;
  102. function pingTest(websiteUrl) {
  103. console.log(websiteUrl);
  104. GM_xmlhttpRequest({
  105. method: "GET",
  106. url: websiteUrl,
  107. headers: {
  108. "Content-Type": "application/x-www-form-urlencoded"
  109. },
  110. timeout: 5000,
  111. onload: function(response) {
  112. console.log("reachable");
  113. isNextUrlReachable = true;
  114. },
  115. onerror: function(e) {
  116. console.log("error");
  117. count=count+1;
  118. getNextUrl();
  119. },
  120. ontimeout: function() {
  121. console.log("timeout");
  122. count=count+1;
  123. getNextUrl();
  124. },
  125. });
  126. }
  127. async function delay(ms) {
  128. return new Promise(resolve => setTimeout(resolve, ms))
  129. }
  130. var movingToNextUrl = false;
  131. async function goToNextUrl() {
  132. if((window && window.self == top) || (unsafeWindow && unsafeWindow.self == top)){
  133. console.log("Going to next Url");
  134. if(!movingToNextUrl){
  135. movingToNextUrl = true;
  136. getNextUrl();
  137. while (!isNextUrlReachable) {
  138. await delay(3000);
  139. }
  140. console.log("Done");
  141. window.location.href = websiteDataValues.nextUrl;
  142. }
  143. }
  144. }
  145. async function goToWithdrawPage() {
  146. if(!movingToNextUrl){
  147. movingToNextUrl = true;
  148. window.location.href = websiteDataValues.withdrawPageUrl;
  149. }
  150. }
  151. var delayBeforeMovingToNextUrl = 120000;
  152. if(websiteDataValues.timeoutbeforeMovingToNextUrl){
  153. delayBeforeMovingToNextUrl = websiteDataValues.timeoutbeforeMovingToNextUrl;
  154. }
  155. setTimeout(function(){
  156. goToNextUrl();
  157. },delayBeforeMovingToNextUrl);
  158. function messageSelectorsPresent(){
  159. if(websiteDataValues.allMessageSelectors){
  160. for(var j=0;j<websiteDataValues.allMessageSelectors.length;j++){
  161. for(var k=0; k< document.querySelectorAll(websiteDataValues.allMessageSelectors[j]).length;k++){
  162. if(document.querySelectorAll(websiteDataValues.allMessageSelectors[j])[k] &&
  163. (document.querySelectorAll(websiteDataValues.allMessageSelectors[j])[k].innerText.includesOneOf(websiteDataValues.messagesToCheckBeforeMovingToNextUrl) ||
  164. (document.querySelectorAll(websiteDataValues.allMessageSelectors[j])[k].value &&
  165. document.querySelectorAll(websiteDataValues.allMessageSelectors[j])[k].value.includesOneOf(websiteDataValues.messagesToCheckBeforeMovingToNextUrl)))){
  166. return true;
  167. }
  168. }
  169. }
  170. }
  171. return false;
  172. }
  173. function successMessageSelectorsPresent(){
  174. if(websiteDataValues.successMessageSelectors){
  175. for(var j=0;j<websiteDataValues.successMessageSelectors.length;j++){
  176. for(var k=0; k< document.querySelectorAll(websiteDataValues.successMessageSelectors[j]).length;k++){
  177. if(document.querySelectorAll(websiteDataValues.successMessageSelectors[j])[k] && document.querySelectorAll(websiteDataValues.successMessageSelectors[j])[k].innerText.includesOneOf(websiteDataValues.messagesToCheckBeforeMovingToNextUrl)){
  178. return true;
  179. }
  180. }
  181. }
  182. }
  183. return false;
  184. }
  185. function bitgames(){
  186. var clicked = false;
  187. var formSubmitted = false;
  188. var modalFormClicked = false;
  189. if(document.querySelector(".level-easy.enabled") && document.querySelector(".level-easy.enabled").innerText.includes("HCaptcha")){
  190. document.querySelector(".level-easy.enabled").click();
  191. }
  192. if(document.querySelector("div.--hcaptcha-insticator-center > div > form > center:nth-child(3) > div > div > p")){
  193. var ranquestion = document.querySelector("div.--hcaptcha-insticator-center > div > form > center:nth-child(3) > div > div > p").innerText;
  194. ranquestion= ranquestion.replace("What is ","");
  195. ranquestion= ranquestion.split("+");
  196. document.querySelector("#humanverify").value = Number(ranquestion[0].trim()) + Number(ranquestion[1].trim())
  197. }
  198. setInterval(function(){
  199. if(!clicked && document.querySelector("button.btn.btn-primary.btn-show")){
  200. document.querySelector("button.btn.btn-primary.btn-show").click()
  201. clicked = true;
  202. }
  203. if(document.querySelector(".btn-mine") && document.querySelector(".btn-mine").style.display =="inline"){
  204. document.querySelector(".btn-mine").click();
  205. }
  206. if(formSubmitted && !modalFormClicked && document.querySelector("#insticator-modal button.btn.btn-primary.btn-show")){
  207. document.querySelector("#insticator-modal button.btn.btn-primary.btn-show").click();
  208. modalFormClicked = true;
  209. }
  210. if(document.querySelector("iframe") && document.querySelector("iframe").getAttribute("data-hcaptcha-response") &&
  211. document.querySelector("iframe").getAttribute("data-hcaptcha-response").length > 0) {
  212. if(document.querySelector(".btn-solve")){
  213. document.querySelector(".btn-solve").click();
  214. }
  215. if(document.querySelector(".btn.btn-primary.btn-solve-insticator")){
  216. document.querySelector(".btn.btn-primary.btn-solve-insticator").click();
  217. }
  218. if(!formSubmitted && document.querySelector("form.puzzle-form")){
  219. formSubmitted = true;
  220. clicked = false;
  221. document.querySelector(".form.puzzle-form").submit();
  222. }
  223. if(document.querySelector("#btn-verify")){
  224. document.querySelector("#btn-verify").click();
  225. }
  226. }
  227. },5000);
  228. }
  229. setTimeout(function(){
  230. if( websiteDataValues.additionalFunctions){
  231. websiteDataValues.additionalFunctions();
  232. }
  233. if(!movingToNextUrl && messageSelectorsPresent()){
  234. goToNextUrl();
  235. }
  236. if(!movingToNextUrl && websiteDataValues.defaultButtonSelectors){
  237. for(var i=0;i<websiteDataValues.defaultButtonSelectors.length ;i++){
  238. if(document.querySelector(websiteDataValues.defaultButtonSelectors[i])){
  239. triggerEvent(document.querySelector(websiteDataValues.defaultButtonSelectors[i]), 'mousedown');
  240. triggerEvent(document.querySelector(websiteDataValues.defaultButtonSelectors[i]), 'mouseup');
  241. document.querySelector(websiteDataValues.defaultButtonSelectors[i]).click();
  242. break;
  243. }
  244. }
  245. }
  246. if(!movingToNextUrl && websiteDataValues.toggleCaptchaSelector && Number.isInteger(websiteDataValues.toggleCaptchaSelectorIndex)){
  247. toggleCaptcha(websiteDataValues.toggleCaptchaSelector,websiteDataValues.toggleCaptchaSelectorIndex);
  248. }
  249. if(!movingToNextUrl && document.querySelector(websiteDataValues.inputTextSelector)){
  250. document.querySelector(websiteDataValues.inputTextSelector).value = websiteDataValues.address;
  251. setTimeout(function(){
  252. if(websiteDataValues.inputTextSelectorButton && document.querySelector(websiteDataValues.inputTextSelectorButton)){
  253. document.querySelector(websiteDataValues.inputTextSelectorButton).click();
  254. }
  255. },5000);
  256. }
  257. var captchaInterval = setInterval(function(){
  258. try{
  259. if(!clicked && unsafeWindow.grecaptcha && unsafeWindow.grecaptcha.getResponse().length > 0){
  260. document.querySelector(websiteDataValues.captchaButtonSubmitSelector).click();
  261. clicked = true;
  262. clearInterval(captchaInterval);
  263. setTimeout(function(){
  264. if(messageSelectorsPresent()){
  265. goToNextUrl();
  266. }
  267. },5000);
  268. }
  269. }catch(e){
  270. }
  271. for(var hc=0; hc < document.querySelectorAll("iframe").length; hc++){
  272. if(! clicked && document.querySelectorAll("iframe")[hc] &&
  273. document.querySelectorAll("iframe")[hc].getAttribute("data-hcaptcha-response") &&
  274. document.querySelectorAll("iframe")[hc].getAttribute("data-hcaptcha-response").length > 0) {
  275. document.querySelector(websiteDataValues.captchaButtonSubmitSelector).click();
  276. clicked = true;
  277. clearInterval(captchaInterval);
  278. setTimeout(function(){
  279. if(messageSelectorsPresent()){
  280. goToNextUrl();
  281. }
  282. },5000);
  283. }
  284. }
  285. },5000);
  286. },5000);
  287. })();

comments powered by Disqus