您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Displays Real Time Ping in zombsroyale.io
当前为
// ==UserScript== // @name Live Ping Display in zombsroyale.io // @namespace zombsroyale.io // @version 1.0 // @description Displays Real Time Ping in zombsroyale.io // @match zombsroyale.io // @grant none // ==/UserScript== (function() { 'use strict'; var pingDisplay = document.createElement('div'); pingDisplay.style.position = 'fixed'; pingDisplay.style.top = '10px'; pingDisplay.style.left = '10px'; pingDisplay.style.zIndex = '9999'; pingDisplay.style.backgroundColor = 'white'; pingDisplay.style.padding = '10px'; document.body.appendChild(pingDisplay); function measurePing() { var startTime = new Date().getTime(); var xhr = new XMLHttpRequest(); xhr.open('HEAD', window.location.href + '?rand=' + Math.random(), true); xhr.onreadystatechange = function() { if (xhr.readyState === 4) { var endTime = new Date().getTime(); var ping = endTime - startTime; pingDisplay.textContent = 'Ping: ' + ping + ' ms'; } }; xhr.send(null); } setInterval(measurePing, 125); })();