您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
优化Temu"卖家中心->备货单管理->发货单列表"每次打开都会弹窗的烦人问题
当前为
// ==UserScript== // @name Temu卖家中心样式优化 // @namespace http://greasyfork.icu/zh-CN/scripts/528600 // @version 0.3 // @license MIT // @description 优化Temu"卖家中心->备货单管理->发货单列表"每次打开都会弹窗的烦人问题 // @author zhenhappy<[email protected]> // @match https://seller.kuajingmaihuo.com/main/order-manager/shipping-list // @icon https://bstatic.cdnfe.com/static/files/sc/favicon.ico // @require https://unpkg.com/jquery/dist/jquery.slim.min.js // @grant none // ==/UserScript== (function() { 'use strict'; const MAX_RETRIES = 1000; // 最大重试次数 const CHECK_INTERVAL = 100; // 检查间隔时间(毫秒) let retryCount = 0; const checkAndRemoveTooltip = () => { const tooltip = $('.PT_tooltip_5-111-0'); if (tooltip.length > 0) { tooltip.css({ 'display': 'none', 'visibility': 'hidden', 'opacity': '0', 'pointer-events': 'none' }); console.log('成功隐藏弹窗元素'); return true; } return false; }; const intervalId = setInterval(() => { retryCount++; if (checkAndRemoveTooltip() || retryCount >= MAX_RETRIES) { if (retryCount >= MAX_RETRIES) { console.log('达到最大重试次数,停止检查'); } clearInterval(intervalId); } }, CHECK_INTERVAL); })();