// ==UserScript== // @name 漫画图片网站自动触发懒加载 // @namespace http://tampermonkey/auto-scroll // @version 1.0 // @author ChatGpt // @description Automatically scroll down a webpage at a set interval and distance, with the option to pause and resume scrolling using a button // @match http://*/* // @match https://*/* // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function () { // Default settings let time = 200; // Time in milliseconds let distance = 500; // Distance in pixels let scrollInterval = null; // Interval ID for scroll timer // Create a div for the button and input fields const div = document.createElement("div"); div.style.position = "fixed"; div.style.top = "50%"; div.style.left = "0"; div.style.width = "100px"; div.style.transform = "translateY(-50%)"; div.style.padding = "10px"; div.style.zIndex = "9999"; div.innerHTML = `