您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
-
// ==UserScript== // @name RR: Show Real Price // @namespace - // @version 1.0.3 // @description - // @author LianSheng // @match https://rivalregions.com/ // @icon https://www.google.com/s2/favicons?sz=64&domain=rivalregions.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function numberWithCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } setInterval(() => { if(! location.hash.includes("storage")) { return; } const realPriceElement = document.querySelector("input[price]"); const showPriceElement = document.querySelector("span.storage_see.tip span.dot"); if(realPriceElement && showPriceElement && !realPriceElement.classList.contains("RRSRP_Changed")) { let realPrice = realPriceElement.getAttribute("price") - 0; realPrice = realPrice < 1000 ? realPrice.toFixed(1) : realPrice; showPriceElement.innerText = `${numberWithCommas(realPrice)} $`; showPriceElement.style.fontSize = "15px"; realPriceElement.classList.add("RRSRP_Changed"); return; } const listTds = document.querySelectorAll("td[rat]:not(.imp):not(.RRSRP_Changed)"); if(listTds.length > 0) { listTds.forEach(td => { let realPrice = td.getAttribute("rat") - 0; realPrice = realPrice < 1000 ? realPrice.toFixed(1) : realPrice; td.querySelector("span").innerText = `${numberWithCommas(realPrice)} $`; td.classList.add("RRSRP_Changed"); }); } }, 50); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址