您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Qualifying Text For Every Race In NT! :)
// // ==UserScript== // @name Nitro Type Qualifying Text In Regular Races // @namespace http://tampermonkey.net/ // @version 0.4 // @description Qualifying Text For Every Race In NT! :) // @author Hayks Test Group // @match https://www.nitrotype.com/race // @match https://www.nitrotype.com/race/* // @icon https://www.google.com/s2/favicons?sz=64&domain=nitrotype.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const findReact = (dom, traverseUp = 0) => { const key = Object.keys(dom).find((key) => key.startsWith("__reactFiber$")) const domFiber = dom[key] if (domFiber == null) return null const getCompFiber = (fiber) => { let parentFiber = fiber?.return while (typeof parentFiber?.type == "string") { parentFiber = parentFiber?.return } return parentFiber } let compFiber = getCompFiber(domFiber) for (let i = 0; i < traverseUp && compFiber; i++) { compFiber = getCompFiber(compFiber) } return compFiber?.stateNode } setInterval(function(){findReact(raceContainer)['state']['lessonContent']='The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.'},10);; })();