您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Calculates the total loan amount displayed on a PaydaySay web interface
// ==UserScript== // @name PaydaySay Loan Amount Counter // @namespace http://gf.qytechs.cn/ // @version 1.0 // @description Calculates the total loan amount displayed on a PaydaySay web interface // @author Andrew // @match *://*/* // @grant none // @license none // ==/UserScript== (function () { 'use strict'; // Function to extract dollar amounts from text function extractAmount(text) { const match = text.replace(/,/g, '').match(/\$?(\d+(\.\d{1,2})?)/); return match ? parseFloat(match[1]) : 0; } // Function to find and sum up all money amounts on the page function calculateTotalLoan() { const elements = document.querySelectorAll('*'); // You can refine this let total = 0; elements.forEach((el) => { const text = el.innerText || el.textContent; if (/\$\d+/.test(text)) { total += extractAmount(text); } }); alert(`Total loan amount found on PaydaySay page: $${total.toFixed(2)}`); } // Run calculation 3 seconds after page load window.addEventListener('load', () => { setTimeout(calculateTotalLoan, 3000); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址