Liteonion.online/instant Auto faucet

Automatically login and click faucet

  1. // ==UserScript==
  2. // @name Liteonion.online/instant Auto faucet
  3. // @namespace bekerja pada tampermonkey maupun violentmonkey
  4. // @version 0.3
  5. // @description Automatically login and click faucet
  6. // @grant GM_getValue
  7. // @grant GM_setValue
  8. // @grant GM_addStyle
  9. // @grant window.onurlchange
  10. // @grant GM_registerMenuCommand
  11. // @require https://update.gf.qytechs.cn/scripts/439099/1203718/MonkeyConfig%20Modern%20Reloaded.js
  12. // @match https://liteonion.online/instant/*
  13. // @icon https://i.ibb.co.com/XJSPdz0/large.png
  14. // @license Copyright OjoNgono
  15. // @antifeature referral-link Directs to a referral link when not logged in
  16. // ==/UserScript==
  17.  
  18. const cfg = new MonkeyConfig({
  19. title: 'Input Email Faucetpay:',
  20. menuCommand: true,
  21. params: {
  22. Email: {
  23. label: "Email Faucetpay",
  24. type: "text",
  25. default: ''
  26. },
  27. }
  28. });
  29.  
  30. (function() {
  31. 'use strict';
  32.  
  33. window.addEventListener('load', () => {
  34. const email = cfg.get('Email');
  35. if (!email || email.trim() === '') {
  36. enforceLogoutWithWarning();
  37. } else {
  38. enforceReferralUrl();
  39. setTimeout(() => {
  40. clickLoginRegisterButton();
  41. }, 1000);
  42.  
  43. const loginInterval = setInterval(() => {
  44. if (handleLoginPopup()) {
  45. clearInterval(loginInterval);
  46. }
  47. }, 1000);
  48.  
  49. setTimeout(() => {
  50. if (document.querySelector("#logoutModal")) {
  51. rotateUrls();
  52. checkTurnstileAndClick();
  53. }
  54. }, 5000);
  55. }
  56. });
  57.  
  58. function enforceReferralUrl() {
  59. const loggedIn = document.querySelector("#logoutModal");
  60. if (loggedIn) {
  61. return;
  62. }
  63. if (window.location.href === "https://liteonion.online/instant/" && !window.location.href.includes("?r=3638")) {
  64. window.location.replace("https://liteonion.online/instant/?r=3638");
  65. }
  66. }
  67.  
  68.  
  69. function enforceLogoutWithWarning() {
  70. const loggedIn = document.querySelector("#logoutModal");
  71. if (loggedIn) {
  72. alert('Please enter your email in the settings menu before using my script.');
  73. const logoutButton = document.querySelector('a[href="https://liteonion.online/instant/auth/logout"]');
  74. if (logoutButton) {
  75. logoutButton.click();
  76. } else {
  77. window.location.replace("https://liteonion.online/instant/auth/logout");
  78. }
  79. }
  80. }
  81.  
  82. function clickLoginRegisterButton() {
  83. const loginButton = document.querySelector('span.mb-0');
  84. if (loginButton && loginButton.textContent.includes('Login / Register')) {
  85. loginButton.click();
  86. }
  87. }
  88.  
  89. function handleLoginPopup() {
  90. const modalTitle = document.querySelector('.modal-title');
  91. if (modalTitle && modalTitle.textContent.includes('Login')) {
  92. const emailInput = document.querySelector('#InputEmail');
  93. const loginButton = document.querySelector('button[type="submit"].d-flex.align-items-center.btn.btn-outline.border.text-secondary');
  94. if (emailInput && loginButton) {
  95. emailInput.value = cfg.get('Email');
  96. loginButton.click();
  97. return true;
  98. }
  99. }
  100. return false;
  101. }
  102.  
  103. const urls = [
  104. "https://liteonion.online/instant/faucet/currency/ltc",
  105. "https://liteonion.online/instant/faucet/currency/doge",
  106. "https://liteonion.online/instant/faucet/currency/usdt",
  107. "https://liteonion.online/instant/faucet/currency/sol",
  108. "https://liteonion.online/instant/faucet/currency/trx",
  109. "https://liteonion.online/instant/faucet/currency/bnb",
  110. "https://liteonion.online/instant/faucet/currency/bch",
  111. "https://liteonion.online/instant/faucet/currency/dash",
  112. "https://liteonion.online/instant/faucet/currency/dgb",
  113. "https://liteonion.online/instant/faucet/currency/eth",
  114. "https://liteonion.online/instant/faucet/currency/fey",
  115. "https://liteonion.online/instant/faucet/currency/zec",
  116. "https://liteonion.online/instant/faucet/currency/matic",
  117. "https://liteonion.online/instant/faucet/currency/xmr"
  118. ];
  119.  
  120. let currentIndex = parseInt(localStorage.getItem('currentIndex')) || 0;
  121. const rotateUrls = () => {
  122. if (window.location.href === "https://liteonion.online/instant/") {
  123. window.location.href = urls[currentIndex];
  124. currentIndex = (currentIndex + 1) % urls.length;
  125. localStorage.setItem('currentIndex', currentIndex);
  126. }
  127. };
  128.  
  129. const scrollToButton = () => {
  130. const submitButton = document.querySelector("#subbutt");
  131. if (submitButton) {
  132. const isVisible = () => {
  133. const rect = submitButton.getBoundingClientRect();
  134. return (
  135. rect.top >= 0 &&
  136. rect.left >= 0 &&
  137. rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
  138. rect.right <= (window.innerWidth || document.documentElement.clientWidth)
  139. );
  140. };
  141. if (!isVisible()) {
  142. submitButton.scrollIntoView({
  143. behavior: 'smooth',
  144. block: 'center'
  145. });
  146. }
  147. }
  148. };
  149.  
  150. scrollToButton();
  151.  
  152. function checkTurnstile() {
  153. let turnstileResponse = document.querySelector('input[name="cf-turnstile-response"]');
  154. return turnstileResponse && turnstileResponse.value !== '';
  155. }
  156.  
  157. function checkRecaptcha() {
  158. let recaptchaFrame = document.querySelector("iframe[title='reCAPTCHA']");
  159. if (recaptchaFrame && window.grecaptcha) {
  160. return window.grecaptcha.getResponse().length !== 0;
  161. }
  162. return false;
  163. }
  164.  
  165. function checkHcaptcha() {
  166. let HcaptchaFrame = document.querySelector("iframe[src^='https://newassets.hcaptcha.com']");
  167. if (HcaptchaFrame && window.hcaptcha) {
  168. return window.hcaptcha.getResponse().length !== 0;
  169. }
  170. return false;
  171. }
  172.  
  173. function clickClaimNow() {
  174. let claimNowButton = document.querySelector('#subbutt');
  175. if (claimNowButton && claimNowButton.innerText.includes('Claim Now')) {
  176. claimNowButton.click();
  177. }
  178. }
  179.  
  180. function clickUnlock() {
  181. let unlockButton = document.querySelector('button.btn.btn-primary.w-md');
  182. if (unlockButton && unlockButton.innerText.includes('Unlock')) {
  183. unlockButton.click();
  184. }
  185. }
  186.  
  187. let intervalId = setInterval(function() {
  188. if (checkTurnstile() || checkHcaptcha() || checkRecaptcha()) {
  189. clickClaimNow();
  190. clickUnlock();
  191. clearInterval(intervalId);
  192. clearTimeout(timeoutId);
  193. }
  194. }, 1000);
  195.  
  196. let timeoutId = setTimeout(function() {
  197. clickClaimNow();
  198. clickUnlock();
  199. clearInterval(intervalId);
  200. }, 15000);
  201.  
  202.  
  203. function checkForMessage() {
  204. const swalContainer = document.querySelector('#swal2-html-container');
  205. if (swalContainer && swalContainer.style.display === 'block') {
  206. const pageText = swalContainer.innerText || "";
  207. const successMessage1 = "The faucet does not have sufficient funds for this transaction.";
  208. const successMessage2 = "has been added to your Main account!";
  209. const invalidCaptchaMessage = "Invalid Captcha";
  210. setTimeout(() => {
  211. const cleanedText = cleanText(pageText);
  212. if (cleanedText.includes(successMessage1) || cleanedText.includes(successMessage2) || cleanedText.includes(invalidCaptchaMessage)) {
  213. window.location.replace("https://liteonion.online/instant/");
  214. } else {
  215. }
  216. }, 1000);
  217. } else {
  218. }
  219. }
  220.  
  221. function cleanText(text) {
  222. return text.replace(/\s+/g, ' ').trim();
  223. }
  224.  
  225. setInterval(checkForMessage, 1000);
  226.  
  227. })();

QingJ © 2025

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