// ==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 https://update.greasyfork.icu/scripts/463322/%E6%BC%AB%E7%94%BB%E5%9B%BE%E7%89%87%E7%BD%91%E7%AB%99%E8%87%AA%E5%8A%A8%E8%A7%A6%E5%8F%91%E6%87%92%E5%8A%A0%E8%BD%BD.user.js // @updateURL https://update.greasyfork.icu/scripts/463322/%E6%BC%AB%E7%94%BB%E5%9B%BE%E7%89%87%E7%BD%91%E7%AB%99%E8%87%AA%E5%8A%A8%E8%A7%A6%E5%8F%91%E6%87%92%E5%8A%A0%E8%BD%BD.meta.js // ==/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 = `