您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
View ARS currency in steam in USD
// ==UserScript== // @name Steam Currency Convert: Convert ARS to USD // @description View ARS currency in steam in USD // @version 1.0 // @author Tony Stank // @namespace SteamARStoUSD // @match https://store.steampowered.com/* // @license MIT License // ==/UserScript== var er = 115.04; var labels = [ 'discount_original_price', 'discount_final_price', 'game_purchase_price', 'game_area_dlc_price', 'global_action_link', 'salepreviewwidgets_StoreSalePriceBox_3j4dI', 'cart_estimated_total', 'price' ]; function moneyExchange(labels){ var re = /(\D*)(\d\S*)/; for(label in labels){ let price = document.querySelectorAll(`.${labels[label]}`); if(price.length == 0) continue; for(ind in price){ if(re.test(price[ind].textContent)){ let matchItem = re.exec(price[ind].textContent); if(matchItem[1].indexOf('ARS') >= 0){ let p = matchItem[2].replace('.','').replace(',','.'); price[ind].textContent = '$' + (p / er).toFixed(2); } } } } } setTimeout(function(){moneyExchange(labels)}, 1000); // window.onload = function(){moneyExchange(labels)};
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址