Nitro Type "invite all friends" button.

When you want to invite friends to a race on nitro type, you have to click on each checkmark to invite all of them. But with this script, it'll check all the checkmarks for you. So the only thing you have to do is click on the "Invite friends(x)" button.

当前为 2020-07-08 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Nitro Type "invite all friends" button.
  3. // @namespace https://youtu.be/jHMrsPJm8xM
  4. // @version 1
  5. // @description When you want to invite friends to a race on nitro type, you have to click on each checkmark to invite all of them. But with this script, it'll check all the checkmarks for you. So the only thing you have to do is click on the "Invite friends(x)" button.
  6. // @match https://www.typing.com/*
  7. // @match https://10fastfingers.com/*
  8. // @match https://www.nitrotype.com/race
  9. // ==/UserScript==
  10.  
  11. // number.chicks = 8;
  12. // number.people = 32;
  13. // number.games = 3;
  14. // number.players = 734;
  15. // number.questions = 23;
  16. // number.sleeve = 9;
  17. // number.cables = 84;
  18. /* var c = 8 * 3 = 8;
  19. while(c > t){
  20. t+= 3;
  21. t--;
  22. set.function(){
  23. while.settled(cover.synt){
  24. cover.synt;
  25. cover.checkbox;
  26. cover.butotn;
  27. cover.invite;
  28. }
  29. }
  30. }
  31. x.transform();
  32. for (x of elm){
  33. x.kick.checkbox(){
  34. init()
  35. }
  36. }
  37. */
  38.  
  39.  
  40. window.onload = function(){
  41. var ym = setInterval(function(){
  42. if(document.querySelectorAll(".racev3Pre-action")[0]){
  43. clearInterval(ym);
  44. console.log("loaded.");
  45. doThings()
  46. }
  47. })
  48. function doThings(){
  49. c = document.querySelectorAll(".racev3Pre-action")[0];
  50. c.onclick = function(){
  51. var a73Xx7lcd = setInterval(function(){
  52. if(document.querySelectorAll('.input-label').length > 0){
  53. clearInterval(a73Xx7lcd)
  54. checkbox = checkbox = document.querySelectorAll('.input-label');
  55. checkbox.forEach(function(x){
  56. console.log("wow")
  57. x.click();
  58. }) // forEach
  59. }
  60. }, 10);
  61. // interval
  62. };
  63.  
  64. }
  65.  
  66. };