[DOGEWARE]KahootBot Join Random Kahoots

This will try to join hundreds of kahoot lobby until it finds a available lobby and joins it --Warnning this may take over 1-10 minutes to find a open lobby

当前为 2024-03-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name [DOGEWARE]KahootBot Join Random Kahoots
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-03-02
  5. // @description This will try to join hundreds of kahoot lobby until it finds a available lobby and joins it --Warnning this may take over 1-10 minutes to find a open lobby
  6. // @author Dogware
  7. // @match *://kahoot.it/*
  8. // @exclude *://kahoot.it/challenge/*
  9. // @exclude *://kahoot.it/play*
  10. // @exclude *://kahoot.it/join*
  11. // @icon https://www.google.com/s2/favicons?sz=64&domain=kahoot.it
  12. // @grant none
  13. // ==/UserScript==
  14. let lux = 0;
  15. let s_1 = 400;
  16. function generateRandomNumbers() {
  17. let result = '';
  18. const characters = '0123456789';
  19. const charactersLength = characters.length;
  20. for (let i = 0; i < 7; i++) {
  21. result += characters.charAt(Math.floor(Math.random() * charactersLength));
  22. }
  23. return result;
  24. }
  25. setInterval(() => {
  26. const overlays = document.getElementsByClassName('overlay__Overlay-sc-11p2bs0-0 gRviLo');
  27.  
  28. for (let i = 0; i < overlays.length; i++) {
  29. const overlay = overlays[i];
  30. overlay.remove();
  31. }
  32. const elements = document.getElementsByClassName('notification-bar__NotificationBar-sc-1e4wbj0-0');
  33.  
  34. const elementsArray = Array.from(elements);
  35.  
  36. elementsArray.forEach(element => {
  37. element.remove();
  38. });
  39. }, 0)
  40. setInterval(() => {
  41. let nums = generateRandomNumbers()
  42. document.title = `KAHOOT.IT ${nums} DOGEWARE`;
  43. document.getElementById('game-input').value = nums
  44. setTimeout(() => {
  45. location.href = `https://kahoot.it/?pin=${nums}&refer_method=link`
  46. }, s_1 / 2);
  47. lux++
  48. }, s_1);
  49. if (lux >= 500) {
  50. location.reload()
  51. }