// ==UserScript== // @name 亚马逊货币转换 // @namespace http://tampermonkey.net // @version 0.1 // @description 亚马逊汇率助手:将当前亚马逊页面的货币转换为“元”“美元”、“日元”等 // @author 小张 | 个人博客:https://blog.z-l.top | 公众号“爱吃馍” | 设计导航站 :https://dh.z-l.top | quicker账号昵称:星河城野❤ // @match https://*.amazon.com/* // @match https://*.amazon.co.jp/* // @match https://*.amazon.co.uk/* // @match https://*.amazon.de/* // @match https://*.amazon.fr/* // @match https://*.amazon.it/* // @match https://*.amazon.es/* // @match https://*.amazon.ca/* // @match https://*.amazon.com.au/* // @match https://*.amazon.com.br/* // @match https://*.amazon.com.mx/* // @match https://*.amazon.nl/* // @match https://*.amazon.se/* // @match https://*.amazon.sg/* // @match https://*.amazon.ae/* // @match https://*.amazon.sa/* // @match https://*.amazon.pl/* // @grant GM_xmlhttpRequest // @grant GM_setValue // @grant GM_getValue // @grant GM_clipboard // @require https://cdn.tailwindcss.com // @require https://code.jquery.com/jquery-3.6.4.min.js // @connect api.frankfurter.app // @run-at document-end // ==/UserScript== (function() { 'use strict'; // ================= 0. 配置与样式注入 ================= const tailwindConfig = document.createElement('script'); tailwindConfig.innerHTML = ` tailwind.config = { theme: { extend: { colors: { ios: { blue: '#007AFF', text: '#000000', textSec: '#6e6e73', } }, fontFamily: { sans: ['system-ui', '-apple-system', 'BlinkMacSystemFont', 'PingFang SC', 'Microsoft YaHei', 'sans-serif'], }, boxShadow: { 'glass': '0 20px 50px rgba(0,0,0,0.15)', } } } } `; document.head.appendChild(tailwindConfig); $('