kiddyearner

Autologin + Autoshorts!

目前为 2024-05-07 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name kiddyearner
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Autologin + Autoshorts!
  6. // @author Keno Venas
  7. // @match https://kiddyearner.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=kiddyearner.com
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var messageDiv = document.createElement('div');
  16. messageDiv.style.position = 'fixed';
  17. messageDiv.style.top = '20px';
  18. messageDiv.style.left = '20px';
  19. messageDiv.style.padding = '10px';
  20. messageDiv.style.backgroundColor = 'blue';
  21. messageDiv.style.color = 'black';
  22. messageDiv.style.borderRadius = '5px';
  23. messageDiv.style.zIndex = '9999';
  24. messageDiv.textContent = 'Criado por Keno Venas !!!';
  25. document.body.appendChild(messageDiv);
  26. function clicarBotaoComDelay() {
  27. setTimeout(function() {
  28. var botao = document.querySelector('button.btn');
  29. if (botao) {
  30. botao.click();
  31. } else {
  32. console.log('Botão não encontrado.');
  33. }
  34. }, 12000);
  35. }
  36. function clicarClaimBtnComDelay() {
  37. setTimeout(function() {
  38. var claimBtn = document.querySelector('a[class="claim-btn text-white w-100"]');
  39. if (claimBtn) {
  40. claimBtn.click();
  41. } else {
  42. console.log('Botão de claim não encontrado.');
  43. }
  44. }, 5000);
  45. }
  46. function clicarNosBotoes() {
  47. var botoesParaClicar = ['button.btn-submit'];
  48. for (var i = 0; i < botoesParaClicar.length; i++) {
  49. var botao = document.querySelector(botoesParaClicar[i]);
  50. if (botao) {
  51. botao.click();
  52. }
  53. }
  54. }
  55. function isCaptchaChecked() {
  56. return grecaptcha && grecaptcha.getResponse();
  57. }
  58. var verificarCaptchaInterval = setInterval(function() {
  59. if (isCaptchaChecked()) {
  60. clearInterval(verificarCaptchaInterval);
  61. clicarNosBotoes();
  62. }
  63. }, 1000);
  64. clicarBotaoComDelay();
  65. clicarClaimBtnComDelay();
  66.  
  67. // Redireciona para a página de login e para a página de links
  68. if (window.location.href === "https://kiddyearner.com/") {
  69. window.location.href = "https://kiddyearner.com/login";
  70. }
  71.  
  72. if (window.location.href === "https://kiddyearner.com/dashboard") {
  73. window.location.href = "http://linksfly.link/kiddyearner-liks";
  74. }
  75. function preencherCampos() {
  76. var emailCampo = 'input#email';
  77. var senhaCampo = 'input#password';
  78. var email = 'kevenkauanvenas@gmail.com';
  79. var senha = 'kevenkauan12';
  80. setTimeout(function() {
  81. $(emailCampo).val(email);
  82. }, 3000);
  83.  
  84. setTimeout(function() {
  85. $(senhaCampo).val(senha);
  86. }, 3000);
  87. }
  88. function removerCartoes() {
  89. var cartoes = document.querySelectorAll('div[class="col-lg-6"]');
  90. cartoes.forEach(function(cartao) {
  91. var textoCartao = cartao.innerText;
  92. if (
  93. textoCartao.includes("Rs short") ||
  94. textoCartao.includes("clk") ||
  95. textoCartao.includes("Shrinkearn") ||
  96. textoCartao.includes("Shrinkme") ||
  97. textoCartao.includes("Coinfays") ||
  98. textoCartao.includes("FC LC") ||
  99. textoCartao.includes("CTR") ||
  100. textoCartao.includes("Clks"))
  101. {
  102. cartao.remove();
  103. }
  104. });
  105. }
  106. preencherCampos();
  107. removerCartoes();
  108. if(document.querySelector('#gpcaptcha')){
  109.  
  110. const captchaImgs = document.querySelectorAll('#gpcaptcha .svg-padding');
  111. const hashes = [
  112. {"Key": "M512 176.001C512 273.203"},
  113. {"Flag": "M349.565 98.783C295.978"},
  114. {"Heart": "M414.9 24C361.8 24 312"},
  115. {"Car": "M499.991 168h-54.815l-7.854-20"},
  116. {"Plane": "M472 200H360.211L256.013"},
  117. {"House" :"M488 312.7V456c0 13.3-10.7"},
  118. {"Cup":"M192 384h192c53 0 96-43"},
  119. {"Tree" : "M377.33 375.429L293.906"},
  120. {"Star" : "M259.3 17.8L194 150.2 47.9"},
  121. {"Truck":"M624 352h-16V243.9c0-12.7-5"}
  122. ]
  123.  
  124. const selectedText = document.querySelector('#gpcaptcha p .text-capitalize').innerText.toLowerCase();
  125. const checkHash = hashes.find(hash => Object.keys(hash)[0].toLowerCase() === selectedText);
  126. const flagValue = checkHash ? Object.values(checkHash)[0] : null;
  127. console.log(selectedText, flagValue)
  128.  
  129. function checkImages() {
  130. Array.from(captchaImgs).forEach((img, i) => {
  131. const svg = img.querySelector('svg path').getAttribute('d');
  132. if (svg.startsWith(flagValue)) {
  133. img.click()
  134. console.log('Matched');
  135. }else{
  136. console.log('Doesnt match');
  137. }
  138. });
  139. }
  140.  
  141. setInterval(function(){
  142. checkImages();
  143. },10000)
  144. }
  145.  
  146. })();