您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Show APM and Attack stats in Jstris replays
当前为
// ==UserScript== // @name Jstris show APM & Attack in Replays // @namespace http://tampermonkey.net/ // @version 0.1 // @author Oki // @description Show APM and Attack stats in Jstris replays // @match https://*.jstris.jezevec10.com/* // @grant none // ==/UserScript== (function() { 'use strict'; window.addEventListener('load', function(){ /************************** APM & Attack in Replays Script **************************/ var website = "jstris.jezevec10.com" var url = window.location.href var parts = url.split("/") if(parts[3]=="replay" && parts[2].endsWith(website) && parts.length>4){ document.getElementsByClassName("ter")[2].innerHTML = "Attack" var apmStat = document.createElement("tr"); apmStat.innerHTML = '<td class="ter">APM</td><td class="sval"><span id="apmElement">0</span></td>' document.getElementsByClassName("moreStats")[0].appendChild(apmStat); Replayer['prototype']['getAPM'] = function() { return ((this['gamedata']['linesSent'] / (this['clock'] / 6000))*10).toFixed(2) }; View.prototype.updateTextBar = function() { this.clockElement.innerHTML = sprintTimeFormat(this.g.clock / 1e3, 3), this.sentElement.innerHTML = this.g.gamedata.linesSent, this.ppsElement.innerHTML = this.g.getPPS(), this.kppElement.innerHTML = this.g.getKPP() apmElement.innerHTML = this.g.getAPM() } } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址