Kirka.io Name and Level Changer

Menu and In game Lvl And Username/Level Changer

当前为 2023-09-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Kirka.io Name and Level Changer
  3. // @namespace https://discord.gg/HbvVzhsHz
  4. // @version 5.0
  5. // @description Menu and In game Lvl And Username/Level Changer
  6. // @author Jaguar
  7. // @match https://kirka.io/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=kirka.io
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12. //----------------------------------------------
  13. // Discord: https://discord.gg/HbvVzhsHzj //
  14. //----------------------------------------------
  15.  
  16. const customUsername = "Jaguar"; // Custom Username
  17. const ClanTag = "i love voxiom" // Custom Clan
  18. const Level = "420" // Custom Level
  19.  
  20.  
  21.  
  22.  
  23. function replaceText(node, username) {
  24. const replacedText = node.textContent.replace(new RegExp(username, 'gi'), customUsername);
  25. node.textContent = replacedText;
  26. }
  27.  
  28. function handleMutation(mutationsList, username) {
  29. for (let mutation of mutationsList) {
  30. if (mutation.type === 'childList') {
  31. const walker = document.createTreeWalker(mutation.target, NodeFilter.SHOW_TEXT, null, false);
  32. while (walker.nextNode()) {
  33. const node = walker.currentNode;
  34. if (node.textContent.includes(username)) {
  35. replaceText(node, username);
  36. }
  37. }
  38. }
  39. }
  40. }
  41.  
  42.  
  43. function observer(username) {
  44. const observer = new MutationObserver(mutationsList => handleMutation(mutationsList, username));
  45. observer.observe(document.body, { childList: true, subtree: true });
  46. }
  47.  
  48. function LVLANDCLAN() {
  49. document.querySelector('.levels').textContent = Level;
  50. document.querySelector('.clan-tag').textContent = ClanTag;
  51. document.querySelector('.level-value').textContent = Level;
  52.  
  53. }
  54. function Check() {
  55. const user = document.querySelector('.nickname');
  56. if (user) {
  57. const username = user.textContent;
  58. observer(username);
  59. user.textContent = customUsername;
  60. } else {
  61. setTimeout(Check, 1); // Loop if Not Found Since Loading times ✅😊🤣😂🤣❤❤❤🤣
  62. }
  63. }
  64. setInterval(LVLANDCLAN, 100);
  65. window.addEventListener("load", Check);