您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Chnage the color of the text on the race page randomly.
// ==UserScript== // @name Nitro Type random race text color // @namespace ginfio.com/giveaways // @version 1.3 // @description Chnage the color of the text on the race page randomly. // @author Ginfio // @match https://www.nitrotype.com/race // @match https://www.nitrotype.com/race/* // ==/UserScript== window.onload = function(){ function changeColor(){ document.querySelectorAll(".dash-copyContainer")[0].style.background = '#1d1e23'; var txt = document.querySelector(".dash-copy"); var x = document.querySelectorAll(".dash-copy") setInterval(function(){ console.log(x.length) }, 5000) var randColor = function() { var color = '#'; var val = "789abcdef"; for (var i = 0; i < 6; i++) { color += val.charAt(Math.floor(Math.random() * val.length)); } return color; } const stl = document.createElement('style'); stl.innerHTML = ` .dash-copy{ color: ${randColor()}!important } .dash-letter.is-correct{ color: #999!important; } `; document.head.appendChild(stl); } var check = setInterval(function() { if (document.querySelector(".dash-copyContainer") == null || document.querySelector(".dash-copyContainer") == 'undefined'){ return } else { clearInterval(check); changeColor() } }, 1); }