您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically convert librespeed.org results to display MB/s instead of Megabit
当前为
// ==UserScript== // @name Results in Megabytes - librespeed.org // @namespace librespeed-to-bytes // @match https://librespeed.org/ // @grant none // @version 1.1 // @author Chopper1337 // @license MIT // @description Automatically convert librespeed.org results to display MB/s instead of Megabit // ==/UserScript== var x = setInterval(function() { if(document.getElementById("resultsImg").width > 10) { console.log("Exists!"); var unit = document.getElementsByClassName("unit") ; var dlF = parseFloat(document.getElementById("dlText").innerHTML) var ulF = parseFloat(document.getElementById("ulText").innerHTML) document.getElementById("dlText").innerHTML = (dlF * 0.125); document.getElementById("ulText").innerHTML = (ulF * 0.125); clearInterval(x); unit[2].innerHTML = "MB/s" unit[3].innerHTML = "MB/s" clearInterval(x); } }, 100); // check every 100ms var y = setInterval(function() { if(document.getElementById("ip").innerHTML.length > 10) { console.log("Exists!"); document.getElementById("ip").style.backgroundColor = "red"; document.getElementById("ip").style.color = "transparent"; document.getElementById("ip").onmouseover = function() { this.style.color = "black" } document.getElementById("ip").onmouseleave = function() { this.style.color = "transparent" } clearInterval(y); clearInterval(y); } }, 25); // check every 100ms