Autokey helper script - nitro type bot

This script is used for copying the text on nitrotype.com/race to the clipboard. It works in co-operation with the Autokey app. Autokey will then type the text which this script copied. It will do so for each race that you set it to do. Autokey will be found on my site ginfio.com/hacks/autokey. This script is NOT an auto typer by itself. It just copies the text for Autokey to type.

  1. // ==UserScript==
  2. // @name Autokey helper script - nitro type bot
  3. // @namespace https://ginfio.com/giveaways
  4. // @version 3
  5. // @description This script is used for copying the text on nitrotype.com/race to the clipboard. It works in co-operation with the Autokey app. Autokey will then type the text which this script copied. It will do so for each race that you set it to do. Autokey will be found on my site ginfio.com/hacks/autokey. This script is NOT an auto typer by itself. It just copies the text for Autokey to type.
  6. // @match https://www.nitrotype.com/race/*
  7. // @match https://www.nitrotype.com/race
  8. // @license GNU Affero General Public License v3.0
  9. // ==/UserScript==
  10.  
  11. function copyText(e) {
  12. navigator.clipboard.writeText(e)
  13. }
  14.  
  15. function checkForRaceText() {
  16. let e = setInterval(function() {
  17. document.querySelector(".dash-copy") && (copyRaceText(), clearInterval(e))
  18. }, 1e3)
  19. }
  20.  
  21. function reload_page() {
  22. window.location.reload()
  23. }
  24.  
  25. function checkForDisqualified() {
  26. setInterval(function() {
  27. document.querySelector(".modal--raceError") && (copyText("Waiting for race to start..."), reload_page())
  28. }, 1e4)
  29. }
  30.  
  31. function after_race() {
  32. // wait for race to start
  33. let e = setInterval(function() {
  34. document.querySelector(".raceResults") && (reload_page(), copyText("Waiting for race to start..."), clearInterval(e))
  35. }, Math.floor(1e3 * Math.random()))
  36. }
  37.  
  38. function copyRaceText() {
  39. setTimeout(function() {
  40. copyText("start_typing|||" + document.querySelector(".dash-copy").textContent)
  41. // copy race text
  42. }, 1e3)
  43. }
  44.  
  45. function checkForContinueButton() {
  46. setInterval(function() {
  47. btns = Array.from(document.querySelectorAll(".btn.btn--primary.btn--fw")), continue_btn = [], 0 < btns.length && (continue_btn = btns.filter(function(e) {
  48. return e.textContent.includes("ntinue")
  49. })), 0 < continue_btn.length ? window.location.reload() : console.log("did't find.")
  50. }, 1e4)
  51. }
  52.  
  53. function refreshJustIncase() {
  54. setTimeout(function() {
  55. window.location.href = "https://www.nitrotype.com/race"
  56. }, 80000)
  57. }
  58. after_race(), checkForRaceText(), checkForDisqualified(), checkForContinueButton(), refreshJustIncase();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址