Torn Points Market Quick Refresh

Disable fadeIn animation for the refresh button

// ==UserScript==
// @name         Torn Points Market Quick Refresh
// @namespace    underko.torn.scripts.points
// @version      1.0
// @author       underko[3362751]
// @description  Disable fadeIn animation for the refresh button
// @match        https://www.torn.com/pmarket.php
// @grant        none
// @run-at       document-idle
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';

    function applyOverride() {
        if (typeof $ === 'undefined') return;

        if ($('.users-point-sell').length > 0) {
            $(".content-title a.form-reset").show();
        }
    }

    applyOverride();

    const observer = new MutationObserver(() => {
        applyOverride();
    });

    observer.observe(document.body, { childList: true, subtree: true });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址