Bithub Faucet

Loop claim faucet - All faucetpay coins

  1. // ==UserScript==
  2. // @name Bithub Faucet
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Loop claim faucet - All faucetpay coins
  6. // @author Garcia
  7. // @match https://bithub.win/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=bithub.win
  9. // @grant GM_info
  10. // @grant GM_setValue
  11. // @grant GM_getValue
  12. // @grant window.close
  13. // @grant GM_openInTab
  14. // @grant window.onurlchange
  15. // @grant GM_xmlhttpRequest
  16. // @license Crypto BR
  17. // ==/UserScript==
  18. //FAZ FAUCET
  19. let botaoClicado = false; // define uma variável para controlar se o botão foi clicado ou não
  20. const interval1o6 = setInterval(() => {
  21. if (document.querySelector('button.mt-2.btn.btn-one').innerText === 'Collect Your Reward' && !botaoClicado) {
  22. if (document.querySelector('.svg.captcha-selected')) {
  23. document.querySelector('button.mt-2.btn.btn-one').click();
  24. botaoClicado = true; // atualiza a variável para indicar que o botão foi clicado
  25. clearInterval(interval1o6); // interrompe o intervalo
  26. }
  27. }
  28. }, 8000);
  29. //RESOLVE CLOUDFLARE
  30. setTimeout (function(){
  31. document.querySelector("#cf-stage > div.ctp-checkbox-container > label > span").click()
  32. },5000);
  33. //RESOLVE GPCAPTCHA
  34. if(document.querySelector('#gpcaptcha')){
  35. const captchaImgs = document.querySelectorAll('#gpcaptcha .svg-padding');
  36. const hashes = [
  37. {"Key": "M512 176.001C512 273.203"},
  38. {"Flag": "M349.565 98.783C295.978"},
  39. {"Heart": "M414.9 24C361.8 24 312"},
  40. {"Car": "M499.991 168h-54.815l-7.854-20"},
  41. {"Plane": "M472 200H360.211L256.013"},
  42. {"House" :"M488 312.7V456c0 13.3-10.7"},
  43. {"Cup":"M192 384h192c53 0 96-43"},
  44. {"Tree" : "M377.33 375.429L293.906"},
  45. {"Star" : "M259.3 17.8L194 150.2 47.9"},
  46. {"Truck":"M624 352h-16V243.9c0-12.7-5"}
  47. ]
  48. const selectedText = document.querySelector('#gpcaptcha p .text-capitalize').innerText.toLowerCase();
  49. const checkHash = hashes.find(hash => Object.keys(hash)[0].toLowerCase() === selectedText);
  50. const flagValue = checkHash ? Object.values(checkHash)[0] : null;
  51. console.log(selectedText, flagValue)
  52. function checkImages() {
  53. Array.from(captchaImgs).forEach((img, i) => {
  54. const svg = img.querySelector('svg path').getAttribute('d');
  55. if (svg.startsWith(flagValue)) {
  56. img.click()
  57. console.log('Matched');
  58. }else{
  59. console.log('Doesnt match');
  60. }
  61. });
  62. }
  63. setInterval(function(){
  64. checkImages();
  65. },2000)
  66. }
  67. //Redirecionamento
  68. const interval1o10 = setInterval(() => {
  69. if (window.location.href.includes("https://bithub.win/faucet") && document.getElementById('minute') && !botaoClicado) {
  70. location.reload(true);
  71. botaoClicado = true; // atualiza a variável para indicar que o botão foi clicado
  72. clearInterval(interval1o10); // interrompe o intervalo
  73. }
  74. }, 100000);
  75. setInterval(() => {
  76. location.reload(true);
  77. }, 140000);