您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
简单的自动翻页
当前为
// ==UserScript== // @name NGA Auto Pagerize // @namespace https://gf.qytechs.cn/users/263018 // @version 1.0.0 // @author snyssss // @description 简单的自动翻页 // @match *://bbs.nga.cn/* // @match *://ngabbs.com/* // @match *://nga.178.com/* // @noframes // ==/UserScript== ((ui) => { if (!ui) return; // 钩子 const hookFunction = (object, functionName, callback) => { ((originalFunction) => { object[functionName] = function () { const returnValue = originalFunction.apply(this, arguments); callback.apply(this, [returnValue, originalFunction, arguments]); return returnValue; }; })(object[functionName]); }; // 翻页方法 const execute = (() => { const observer = new IntersectionObserver((entries) => { if (entries[0].intersectionRatio > 0) { ui.loadReadHidden(0, 2); } }); return () => { const anchor = document.querySelector('[title="加载下一页"]'); if (anchor) { observer.observe(anchor); } else { observer.disconnect(); } }; })(); // 绑定事件 if (ui.pageBtn) { hookFunction(ui, "pageBtn", execute); execute(); } })(commonui);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址