您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the Card Skimming 'Sell' button if below 10k card details
// ==UserScript== // @name Torn Hide 'Sell' below 10k card details // @namespace http://tampermonkey.net/ // @version 1.0 // @description Removes the Card Skimming 'Sell' button if below 10k card details // @author pawl [1821105] // @match https://www.torn.com/loader.php?sid=crimes* // @grant none // ==/UserScript== (function() { 'use strict'; function hideButtonIfNeeded() { if (!window.location.hash.includes('cardskimming')) return; const countElement = document.querySelector('span.count___xEGL9'); if (!countElement) return; const numberText = countElement.textContent.replace(/,/g, ''); const numberValue = parseInt(numberText, 10); if (isNaN(numberValue)) return; if (numberValue < 10000) { const sellButton = document.querySelector('button[aria-label="Sell, 6 nerve"]'); if (sellButton) { sellButton.style.display = 'none'; } } } function observeDOMChanges() { const observer = new MutationObserver(() => { hideButtonIfNeeded(); }); observer.observe(document.body, { childList: true, subtree: true }); // Also run initial check hideButtonIfNeeded(); } // Fast interval loop in early page load const quickCheck = setInterval(() => { const done = hideButtonIfNeeded(); if (done !== false) { clearInterval(quickCheck); } }, 300); // Checks every 300ms // MutationObserver for dynamic DOM changes window.addEventListener('load', observeDOMChanges); })();