Bot Nick (teste)2 goldbot

wafawfawfafwafawf

Este script no debería instalarse directamente. Es una biblioteca que utilizan otros scripts mediante la meta-directiva de inclusión // @require https://update.sleazyfork.org/scripts/485914/1318898/Bot%20Nick%20%28teste%292%20goldbot.js

  1. // ==UserScript==
  2. // @name Bot Nick (teste)2 goldbot
  3. // @version 0.2
  4. // @author Abed
  5. // @match *://*/*?__cpo=aHR0cHM6Ly9nYXJ0aWMuaW8
  6. // ==/UserScript==
  7.  
  8. // Função para gerar caractere invisível
  9. function generateInvisibleChar() {
  10. var invisibleChars = ["\u200B", "\u200C", "\u200D", "\u2060", "\u180E", "\uFEFF"];
  11. return invisibleChars[Math.floor(Math.random() * invisibleChars.length)];
  12. }
  13.  
  14. // Função para adicionar caracteres invisíveis aleatórios entre cada caractere da string
  15. function rnext(kelime) {
  16. const hd = kelime.split('');
  17. const hu = hd.length;
  18. const yh = [];
  19. for (let i = 0; i < hu; i++) {
  20. yh.push(hd[i]);
  21. if (i < hu - 1) {
  22. const re = Math.floor(Math.random() * 3);
  23. const eh = '‏'.repeat(re);
  24. yh.push(eh);
  25. }
  26. }
  27. return yh.join('');
  28. }
  29.  
  30. // Função para mudar o avatar
  31. function changeAvatar() {
  32. var randomNum = "";
  33. for (var i = 0; i < 4; i++) {
  34. randomNum += generateInvisibleChar();
  35. }
  36.  
  37. if (document.querySelector('input[maxlength="18"]')) {
  38. let e = document.querySelector('input[maxlength="18"]');
  39. let val = e.value;
  40. e.value = rnext("Goldbot");
  41. let ev = new Event('input', { bubbles: true });
  42. ev.simulated = true;
  43. let t = e._valueTracker;
  44. t ? t.setValue(val) : 0;
  45. e.dispatchEvent(ev);
  46. }
  47.  
  48. var button1 = document.evaluate('//*[@id="screens"]/div/div[2]/div[1]/div[1]/div[1]/div[1]/button', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
  49. if (button1) button1.click();
  50.  
  51. var button2 = document.evaluate('//*[@id="popUp"]/div[1]/div/div[2]/div/div/div[1]/ul/li[9]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
  52. if (button2) button2.click();
  53.  
  54. var button3 = document.evaluate('//*[@id="popUp"]/div[1]/div/div[3]/button', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
  55. if (button3) button3.click();
  56.  
  57. console.log('Avatar changed successfully');
  58. }
  59.  
  60. // Função para clicar no botão com atraso
  61. function clickButtonWithDelay() {
  62. var button4 = document.evaluate('//*[@id="screens"]/div/div[2]/div[2]/button', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
  63. if (button4) button4.click();
  64. console.log('New button clicked successfully');
  65. }
  66.  
  67. // Função principal que inicia o script com um atraso definido pelo usuário
  68. function startScriptWithDelay(delay) {
  69. if (!delay || isNaN(delay)) {
  70. console.log("Tempo de espera inválido. Script cancelado.");
  71. return;
  72. }
  73.  
  74. setTimeout(changeAvatar, delay);
  75. setTimeout(clickButtonWithDelay, delay + 1090); // Adicione o tempo de espera desejado
  76.  
  77. console.log(`Script iniciado com um atraso de ${delay} milissegundos.`);
  78. }
  79.  
  80. // Chamar a função principal com o tempo de espera desejado (em milissegundos)
  81. startScriptWithDelay(990); // Defina o tempo de espera desejado aqui (em milissegundos)