您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
测试脚本测试
// ==UserScript== // @name 测试脚本1 // @namespace https://www.vmall.com/* // @version 0.1 // @description 测试脚本测试 // @author Wind_DSA // @match https://m.vmall.com/portal/* // @icon https://www.google.com/s2/favicons?sz=64&domain=atlasinfo.com.cn // @grant none // ==/UserScript== setTimeout(() => { // 获取页面中所有的div元素 const divElements = document.getElementsByTagName("div"); const divsWithHeight76px = []; for (let i = 0; i < divElements.length; i++) { const div = divElements[i]; const divHeight = div.offsetHeight; if (divHeight === 74) { divsWithHeight76px.push(div); } } setInterval(() => { divsWithHeight76px[1].click(); }, 500); }, 2000);