您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
trucksbook.eu 欧元换算人民币单位插件,安装即可使用生效。
// ==UserScript== // @name Trucksbook 欧元换算人民币单位 // @version 1.0 // @namespace https://github.com/dlzmoe/Userscript // @author dlzmoe // @description trucksbook.eu 欧元换算人民币单位插件,安装即可使用生效。 // @match https://trucksbook.eu/* // @grant none // @icon https://trucksbook.eu/data/system/favicon.ico // @license Apache-2.0 license // ==/UserScript== (function () { 'use strict'; $(document).ready(function () { var exchangeRate = 7.73; // 汇率 $('*').contents().each(function () { if (this.nodeType === Node.TEXT_NODE) { var text = this.nodeValue; var regex = /(\d[\d\s]*)\s*€/g; var matches; while ((matches = regex.exec(text)) !== null) { var euroValue = parseFloat(matches[1].replace(/\s+/g, '')); var rmbValue = (euroValue * exchangeRate).toFixed(2); var newText = text.replace(matches[0], rmbValue + ' 元'); $(this).replaceWith(newText); } } }); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址