您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically click through popups on https://sso.geiwohuo.com/, including new popup
// ==UserScript== // @name SHEIN自动点击“下一条” // @namespace http://tampermonkey.net/ // @version 0.1 // @license MIT // @description Automatically click through popups on https://sso.geiwohuo.com/, including new popup // @author Your Name // @match https://sso.geiwohuo.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to click the button with the specified attributes function clickButton(ariaLabel, title) { // Find the button using the provided aria-label and title let buttons = document.querySelectorAll(`button[aria-label="${ariaLabel}"][title="${title}"].so-button.so-button-primary`); // Click the button if it is found for (let button of buttons) { button.click(); } } // Set an interval to try and click the buttons every 500 milliseconds (0.5 second) setInterval(function() { // Click the "Next" buttons clickButton('Next', 'Next'); // Click the new "Last" button clickButton('Last', 'Last'); }, 500); })();