Advertisement
Guest User

Nitro type greasy fork

a guest
Nov 9th, 2024
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. -
  2. Download Here --> https://tinyurl.com/2s39bs69 (Copy and Paste Link)
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. Greasy Fork
  10. Changes the Accuracy score based on errors against the whole typing test.
  11. Cara pemasangan
  12. You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.
  13. You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
  14. You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
  15. You will need to install an extension such as Tampermonkey or Userscripts to install this script.
  16. You will need to install a user script manager extension to install this script.
  17. Cara pemasangan
  18. You will need to install an extension such as Stylus to install this script.
  19. You will need to install an extension such as Stylus to install this script.
  20. You will need to install an extension such as Stylus to install this script.
  21. You will need to install a user style manager extension to install this script.
  22. You will need to install a user style manager extension to install this script.
  23. // ==UserScript== // @name Nitro Type - Racing Accuracy Alt Metric // @version 0.1.1 // @description Changes the Accuracy score based on errors against the whole typing test. // @author Toonidy // @match *://*.nitrotype.com/race // @match *://*.nitrotype.com/race/* // @icon https://i.ibb.co/YRs06pc/toonidy-userscript.png // @grant none // @license MIT // @namespace https://greasyfork.org/users/858426 // @require https://greasyfork.org/scripts/443718-nitro-type-userscript-utils/code/Nitro%20Type%20Userscript%20Utils.js?version=1042360 // ==/UserScript== /* global findReact */ const raceContainer = document.getElementById("raceContainer"), reactObj = raceContainer ? findReact(raceContainer) : null if (!raceContainer || !reactObj) const style = document.createElement("style") style.appendChild( document.createTextNode(` .dash-metrics .accuracy-rounded `) ) document.head.appendChild(style) const server = reactObj.server, currentUserID = reactObj.props.user.userID server.on("status", (e) => const lessonLength = e.lessonLength if (!lessonLength) const accuracyNode = raceContainer.querySelector(".dash-metrics .list-item:nth-of-type(2) span.h4") if (!accuracyNode) accuracyNode.textContent = "100.00" const roundedAccuracyNode = document.createElement("div") roundedAccuracyNode.innerHTML = `%` accuracyNode.parentNode.append(roundedAccuracyNode) let errors = 0, skipped = 0 const refreshAccuracy = () => server.on("update", refreshAccuracy) const originalSendPlayerUpdate = server.sendPlayerUpdate server.sendPlayerUpdate = (data) => if (typeof data.e === "number") if (canRefresh) > >)
  24. Greasy Fork
  25. NitroType Auto Reload for windows 7, XP, and more (Older PC's that don't load instantly
  26. Automatically reloads the page at the end of each race.
  27. Hur man installerar
  28. You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.
  29. You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
  30. You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
  31. You will need to install an extension such as Tampermonkey or Userscripts to install this script.
  32. You will need to install a user script manager extension to install this script.
  33. Hur man installerar
  34. You will need to install an extension such as Stylus to install this script.
  35. You will need to install an extension such as Stylus to install this script.
  36. You will need to install an extension such as Stylus to install this script.
  37. You will need to install a user style manager extension to install this script.
  38. You will need to install a user style manager extension to install this script.
  39. Skapare MoreAccurateThanU_NT Dagliga installationer 0 Totala installationer 18 Betyg 0 0 0 Version 2.1.0 Skapad 2022-10-21 Uppdaterad 2022-10-21 Licens MIT
  40. // ==UserScript==// @name NitroType Auto Reload for windows 7, XP, and more (Older PC's that don't load instantly// @author Ray Adams / TheGoatJack1// @namespace https://github.com/Ray-Adams// @description Automatically reloads the page at the end of each race.// @version 2.1.0// @match *://*.nitrotype.com/race// @match *://*.nitrotype.com/race/*// @homepageURL https://github.com/Ray-Adams/NitroType-Archive// @run-at document-end// @grant none// @license MIT// ==/UserScript==
  41. const options = timerMs: 400, // slight delay to make sure the race gets logged reloadWhenDisqualified: true>;
  42. const returnToGarageBtn = document.querySelector('.btn--secondary[href="/garage"]');const raceContainer = document.getElementById('raceContainer');const dashCenter = document.querySelector('.dash-center');
  43. // Watch for error modalconst dqObserver = new MutationObserver((mutationList, observer) => mutationList.forEach(mutation => mutation.addedNodes.forEach(node => if (!node.classList.contains('modal--error')) return;
  44. if (options.reloadWhenDisqualified) dqObserver.observe(raceContainer, );>
  45. // Prevent button from firing the dqObserver (bug fix)returnToGarageBtn.addEventListener('click', () => dqObserver.disconnect();>);
  46. // Watch for class changes on the last letterconst lastLetterObserver = new MutationObserver(mutationList => mutationList.forEach(mutation => if (!mutation.target.classList.contains('is-correct')) return;
  47. lastLetterObserver.disconnect(); setTimeout(() => location.reload(), options.timerMs); >);>);
  48. // Wait for the dashboard to load before observing the lesson textconst lessonObserver = new MutationObserver((mutationList) => mutationList.forEach(mutation => mutation.addedNodes.forEach(node => if (node.className !== 'dash-copyContainer') return;
  49. const letters = document.querySelectorAll('.dash-letter'); const lastLetter = letters[letters.length - 2];
  50. lessonObserver.disconnect(); lastLetterObserver.observe(lastLetter, ); >); >);>);lessonObserver.observe(dashCenter, );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement