您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
TEMU平台每天第一次启动有大量的弹窗,而且有倒计时才能关闭,手动关闭太麻烦,所以这个脚本会在打开TEMU后台的时候开始检测是否有弹出框,如果有,会自动关闭。
当前为
// ==UserScript== // @name Temu模态框自动取消 // @namespace http://tampermonkey.net/ // @description TEMU平台每天第一次启动有大量的弹窗,而且有倒计时才能关闭,手动关闭太麻烦,所以这个脚本会在打开TEMU后台的时候开始检测是否有弹出框,如果有,会自动关闭。 // @version 0.12 // @author Monty // @match https://kuajing.pinduoduo.com* // @match https://seller.kuajingmaihuo.com* // @icon // @grant none // @license MIT // ==/UserScript== function findMD() { setTimeout(function () { var fhmodal = document.querySelector('.MDL_innerWrapper_5-109-0') if(fhmodal!=null){ console.log('查找模态框---------发货提醒:' + fhmodal) document.querySelectorAll('button')[1].click() } var mdbody = document.querySelector('.MDL_body_5-67-0') console.log('查找模态框---------' + mdbody) if (mdbody != null) { var yybtn = document.querySelector('.BTN_primary_5-67-0') yybtn.click() findMD() } else { alert('没有弹出框了') return } }, 2000) } (function () { 'use strict'; findMD() })();