您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides Vicodin priced over $50k so that you don't get scammed of your cash!
// ==UserScript== // @name NoMoreVicodinScam // @namespace LordBusiness.NMVS // @version 2.8 // @description Hides Vicodin priced over $50k so that you don't get scammed of your cash! // @author LordBusiness [2052465] // @match https://www.torn.com/bazaar.php* // @run-at document-end // ==/UserScript== (function() { 'use strict'; const bazaarWrap = document.getElementById('bazaar-page-wrap'), bazaarObserver = new MutationObserver(mutationList => { const bazaarItems = bazaarWrap.querySelector('.items-list'); if(bazaarItems) { bazaarObserver.disconnect(); const VicodinSpan = bazaarItems.querySelector(':scope > li [itemid="205"]') if(VicodinSpan) { const price = parseInt((VicodinSpan.nextElementSibling.querySelector('.wrap > .price').innerText).replace( /[^0-9]/g, '')); if(price > 50000) VicodinSpan.parentNode.parentNode.style.display = 'none'; } return; } }); bazaarObserver.observe(bazaarWrap, { childList: true, subtree: true }); })();