Autokey helper script - nitro type bot

helper script for autokey

目前為 2022-11-05 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Autokey helper script - nitro type bot
  3. // @namespace https://ginfio.com/giveaways
  4. // @version 3
  5. // @description helper script for autokey
  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. /*var mdk = 232;
  11. ll="auto_typer.type(everything)";
  12. r3="finish(mdk)";*/
  13.  
  14.  
  15.  
  16.  
  17.  
  18. function copyText(e){navigator.clipboard.writeText(e)}function checkForRaceText(){let e=setInterval(function(){document.querySelector(".dash-copy")&&(copyRaceText(),clearInterval(e))},1e3)}function reload_page(){window.location.reload()}function checkForDisqualified(){setInterval(function(){document.querySelector(".modal--raceError")&&(copyText("https://ginfio.com"),reload_page())},1e4)}function after_race(){let e=setInterval(function(){document.querySelector(".raceResults")&&(reload_page(),copyText("https://ginfio.com"),clearInterval(e))},Math.floor(1e3*Math.random()))}function copyRaceText(){setTimeout(function(){copyText("start_typing|||"+document.querySelector(".dash-copy").textContent)},1e3)}function checkForContinueButton(){setInterval(function(){btns=Array.from(document.querySelectorAll(".btn.btn--primary.btn--fw")),continue_btn=[],0<btns.length&&(continue_btn=btns.filter(function(e){return e.textContent.includes("ntinue")})),0<continue_btn.length?window.location.reload():console.log("did't find.")},1e4)}function refreshJustIncase(){setTimeout(function(){window.location.href="https://www.nitrotype.com/race"},5e4)}after_race(),checkForRaceText(),checkForDisqualified(),checkForContinueButton(),refreshJustIncase();