📌 📄 内容摘要:
@BVB 在 分享一个浏览器自动下滚的脚本 中发帖
(() => {
// 如果之前跑过,先停掉旧脚本
if (window.__autoScrollCtl?.stop) {
window.__autoScrollCtl.stop();
}
const STEP_PX = 260; // 每次下滑距离
const INTERVAL_MS = 1500; // 每次间隔,约为之前的 1/3
const SMOOTH = true; // 是否平滑滚动
const MAX_IDLE_TICKS = 20; // 连续多少次几乎没动就认为到底了
const scroller = document.scrollingElement || document.documentElement;
let timer = null;
let running = false...
────────── 链接信息 ────────── 🔗 论坛链接: linux.do 📎 访问地址: https://linux.do/t/topic/1997067/1 ─────────────────────────────
📢 来源:LINUX DO