您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A simple way to make Steam Argentine user perceive the low prices. Convert ARS to CNY only,for now.
当前为
// ==UserScript== // @name Steam Currency Convert: Convert ARS to CNY only // @name:zh-CN Steam货币转换:目前仅支持阿根廷比索换算人民币 // @description A simple way to make Steam Argentine user perceive the low prices. Convert ARS to CNY only,for now. // @description:zh-cn 用简单粗暴的方式让Steam阿根廷区用户感受低价区的魅力,一遍遍汇率换算或者查SteamDB真的烦。目前仅支持阿根廷比索换算人民币。 // @version 0.8 // @author 无敌X哥 // @namespace SteamCurrencyConvert // @match https://store.steampowered.com/* // @license MIT License // ==/UserScript== var re = /(\D*)(\d\S*)/ var price = document.querySelectorAll('.discount_final_price') for(ind in price){ if(re.test(price[ind].textContent)){ var matchItem = re.exec(price[ind].textContent) if(matchItem[1].indexOf('ARS') >= 0){ let p = matchItem[2].replace('.','').replace(',','.') price[ind].textContent = '¥' + (p / 13.1341).toFixed(2) } } } var re = /(\D*)(\d\S*)/ var price = document.querySelectorAll('.game_purchase_price') for(ind in price){ if(re.test(price[ind].textContent)){ var matchItem = re.exec(price[ind].textContent) if(matchItem[1].indexOf('ARS') >= 0){ let p = matchItem[2].replace('.','').replace(',','.') price[ind].textContent = '¥' + (p / 13.1341).toFixed(2) } } } var re = /(\D*)(\d\S*)/ var price = document.querySelectorAll('.game_area_dlc_price') for(ind in price){ if(re.test(price[ind].textContent)){ var matchItem = re.exec(price[ind].textContent) if(matchItem[1].indexOf('ARS') >= 0){ let p = matchItem[2].replace('.','').replace(',','.') price[ind].textContent = '¥' + (p / 13.1341).toFixed(2) } } } var re = /(\D*)(\d\S*)/ var price = document.querySelectorAll('.global_action_link') for(ind in price){ if(re.test(price[ind].textContent)){ var matchItem = re.exec(price[ind].textContent) if(matchItem[1].indexOf('ARS') >= 0){ let p = matchItem[2].replace('.','').replace(',','.') price[ind].textContent = '¥' + (p / 13.1341).toFixed(2) } } } var re = /(\D*)(\d\S*)/ var price = document.querySelectorAll('.StoreSalePriceBox') for(ind in price){ if(re.test(price[ind].textContent)){ var matchItem = re.exec(price[ind].textContent) if(matchItem[1].indexOf('ARS') >= 0){ let p = matchItem[2].replace('.','').replace(',','.') price[ind].textContent = '¥' + (p / 13.1341).toFixed(2) } } }