您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Clicks the "Skip" button every time it appears
当前为
// ==UserScript== // @name Review Skip // @namespace https://greasyfork.org/en/users/1291009 // @version 1.8 // @description Clicks the "Skip" button every time it appears // @author BadOrBest // @license MIT // @icon https://www.google.com/s2/favicons?sz=64&domain=acellus.com // @match https://admin192c.acellus.com/student/* // @grant none // @run-at document-end // ==/UserScript== (function() { 'use strict'; // Function to click the "Skip" button function clickSkipButton(skipElement) { if (skipElement) { skipElement.click(); } } // Function to handle mutations function handleMutations(mutationsList, observer) { for (const mutation of mutationsList) { if (mutation.type === 'childList') { // Check if a new element with the text "Skip" has been added const newSkipElements = Array.from(mutation.addedNodes).filter(node => node.textContent.trim() === 'Skip'); if (newSkipElements.length > 0) { // Click all new "Skip" elements newSkipElements.forEach(newSkipElement => clickSkipButton(newSkipElement)); } } } } // Function to continuously click the "Skip" button function clickSkipButtonContinuously() { // Find all spans containing the text "Skip" const skipSpans = Array.from(document.querySelectorAll('span')).filter(span => span.textContent.trim() === 'Skip'); // Click each "Skip" span skipSpans.forEach(span => clickSkipButton(span)); } // Create a MutationObserver to watch for changes in the DOM const observer = new MutationObserver(handleMutations); // Start observing changes in the entire document subtree observer.observe(document.documentElement, { childList: true, subtree: true }); // Click the "Skip" button continuously every 1000 milliseconds (1 second) setInterval(clickSkipButtonContinuously, 1000); })();