您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script will put the nitro type stats page on the nitro type races page, so you can directly see it from there. Idea by Nate Dogg
当前为
// ==UserScript== // @name Nitro Type stats on race page // @namespace ginfio.com/ // @version 1 // @description This script will put the nitro type stats page on the nitro type races page, so you can directly see it from there. Idea by Nate Dogg // @author Ginfio // @match https://www.nitrotype.com/race/* // ==/UserScript== window.onload = function(){ var x = document.querySelectorAll(".list--inline")[0]; var mother = document.querySelectorAll("structure-content") var parsedItem; var racesPlayed; var sessionRaces; var avgSpeed; if (localStorage.getItem('persist:nt')){ parsedItem = JSON.parse(JSON.parse(localStorage.getItem("persist:nt")).user); racesPlayed = parsedItem["racesPlayed"]; sessionRaces = parsedItem["sessionRaces"]; avgSpeed = parsedItem["avgSpeed"] } // dash-actions ok ok const style = document.createElement('style'); style.innerHTML = ` .experiment{ height: auto; width: 100%; background: #343744; z-index: 1; position: absolute; border: 1px solid #444; box-sizing: border-box; padding: 7.5px 12.5px; color: #ccc; border-radius: 2.5px; } `; document.head.appendChild(style); function C(){ var total_races_elem = document.createElement("div") total_races_elem.className = "experiment"; total_races_elem.innerHTML = "Total races: <b>" + racesPlayed + "</b> | " + "Current session: <b>" + sessionRaces + "</b> | " + "Average speed: <b>" + avgSpeed + "</b>"; document.querySelector("#raceContainer").appendChild(total_races_elem) } C() }