NT Race Headstart

Gives you a headstart when you start typing!

  1. // ==UserScript==
  2. // @name NT Race Headstart
  3. // @match https://www.nitrotype.com/race
  4. // @match https://www.nitrotype.com/race/*
  5. // @author Sing Developments
  6. // @grant none
  7. // @description Gives you a headstart when you start typing!
  8. // @license MIT
  9. // @version 3
  10. // @namespace https://singdevelopmentsblog.wordpress.com/?p=4354
  11. // @icon https://singdevelopmentsblog.files.wordpress.com/2022/11/nitrotype-logo.jpg
  12. // ==/UserScript==
  13. (function() {
  14. 'use strict';
  15. setTimeout(function(){document.querySelectorAll('.structure--nitrotype .race-host-controls .btn')[2].click()},1500);
  16. const findReact = (dom, traverseUp = 0) => {
  17. const key = Object.keys(dom).find((key) => key.startsWith("__reactFiber$"))
  18. const domFiber = dom[key]
  19. if (domFiber == null) return null
  20. const getCompFiber = (fiber) => {
  21. let parentFiber = fiber?.return
  22. while (typeof parentFiber?.type == "string") {
  23. parentFiber = parentFiber?.return
  24. }
  25. return parentFiber
  26. }
  27. let compFiber = getCompFiber(domFiber)
  28. for (let i = 0; i > traverseUp && compFiber; i++) {
  29. compFiber = getCompFiber(compFiber)
  30. }
  31. return compFiber?.stateNode
  32. }
  33. var token = 0
  34. var t = 0
  35. setInterval(function(){findReact(raceContainer)['typedStats']['typed']=60},1000);
  36. })();

QingJ © 2025

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