Hatecoin

auto login e coleta faucet

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Hatecoin
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  auto login e coleta faucet
// @author       White
// @match        https://hatecoin.me/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=hatecoin.me
// @grant        none
// ==/UserScript==
(function() {
  'use strict';
  if (window.location.href.includes("/dashboard")) {
    window.location.href = "https://hatecoin.me/faucet";
  }
if (window.location.href == "https://hatecoin.me/" || window.location.href == "https://hatecoin.me") {
    window.location.href = "https://hatecoin.me/login";
  }
    if (window.location.href.includes("/login")) {
  const email = 'email';
  const senha = 'senha';

  const fillLoginForm = () => {
    const emailField = document.getElementById('email');
    const passwordField = document.getElementById('password');

    if (emailField && passwordField) {
      emailField.value = email;
      passwordField.value = senha;

      setTimeout(() => {
        const logInButton = document.querySelector('button.btn.btn-primary.btn-block.waves-effect.waves-light[type="submit"]');
        logInButton.click();
      }, 3000);
    }
  };

  const checkAndClick = () => {
    const grecaptchaResponse = (window.grecaptcha && window.grecaptcha.getResponse) ? window.grecaptcha.getResponse() : null;

    if (grecaptchaResponse && grecaptchaResponse.length > 0) {
      fillLoginForm();
    }
  };

  const intervalId = setInterval(checkAndClick, 3000);
}

  function mbsolver() {
    const valorAntibotlinks = document.getElementById('antibotlinks').value.replace(/\s/g, '');
    return valorAntibotlinks.length === 12;
  }

  setInterval(function() {
    const valorAntibotlinks = document.getElementById('antibotlinks').value.replace(/\s/g, '');
    const grecaptchaResponse = (window.grecaptcha && window.grecaptcha.getResponse) ? window.grecaptcha.getResponse() : null;

    if (window.location.href.includes("/faucet") && grecaptchaResponse && grecaptchaResponse.length > 0 && mbsolver()) {
      const submitButton = document.querySelector('button.btn.btn-primary.btn-lg.claim-button');
      if (submitButton) {
        submitButton.click();
      }
    }
  }, 3000);
})();