您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Convert yen (¥) prices to euros (€) automatically
当前为
A Violentmonkey/Tampermonkey userscript that automatically converts Chinese Yuan (¥) prices to Euros (€) on buff.163.com using real-time exchange rates.
¥ 11<small>.7</small>
Install a userscript manager:
Click on the raw script link or copy the script content
Your userscript manager should automatically detect and prompt you to install the script
Enable the script and visit buff.163.com
The script automatically detects and converts various yuan price formats:
¥ 3588
→ 427.37€
¥ 1,234
→ 147.84€
<strong>¥ 11<small>.7</small></strong>
→ 1.40€
<strong>¥ 2,588<small>.5</small></strong>
→ 309.84€
The script fetches real-time exchange rates from:
https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/cny.json
Response format:
{
"date": "2025-07-19",
"cny": {
"usd": 0.13925057,
"eur": 0.11974298
}
}
To use a different exchange rate API, modify the fetchConversionRate()
function:
const response = await fetch('YOUR_API_URL_HERE');
Update the fallback rate if needed:
let CONVERSION_RATE = 0.119; // Change this value
To use on other websites, add them to the @match
directive:
// @match *://buff.163.com/*
// @match *://example.com/*
fetchConversionRate()
: Gets real-time exchange ratesconvertYenToEuro()
: Performs the currency conversionprocessElement()
: Handles HTML-structured pricesprocessTextNode()
: Handles simple text priceswalkNodes()
: Recursively processes page content<small>
tagsQingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址